From: Anders Kaseorg Date: Sat, 1 Aug 2015 03:28:49 +0000 (-0400) Subject: tests/volser/vos-t.c: Don’t ignore return value of pipe X-Git-Tag: upstream/1.8.0_pre1^2~291 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=7254d831b766c72f8e1b77158082e0e5b3d20224;p=packages%2Fo%2Fopenafs.git tests/volser/vos-t.c: Don’t ignore return value of pipe Resolves this warning: vos-t.c: In function ‘TestListAddrs’: vos-t.c:60:5: warning: ignoring return value of ‘pipe’, declared with attribute warn_unused_result [-Wunused-result] pipe(outpipe); ^ Change-Id: I7eb58a91b5a7d9df18a4952400f74c79299e857d Reviewed-on: http://gerrit.openafs.org/11958 Tested-by: BuildBot Reviewed-by: Benjamin Kaduk --- diff --git a/tests/volser/vos-t.c b/tests/volser/vos-t.c index a93dfc6e2..57161f477 100644 --- a/tests/volser/vos-t.c +++ b/tests/volser/vos-t.c @@ -57,7 +57,10 @@ TestListAddrs(struct ubik_client *client, char *dirname) is_int(0, code, "Second address registration succeeds"); /* Now we need to run vos ListAddrs and see what happens ... */ - pipe(outpipe); + if (pipe(outpipe) < 0) { + perror("pipe"); + exit(1); + } pid = fork(); if (pid == 0) { char *build, *binPath;