From 7254d831b766c72f8e1b77158082e0e5b3d20224 Mon Sep 17 00:00:00 2001 From: Anders Kaseorg Date: Fri, 31 Jul 2015 23:28:49 -0400 Subject: [PATCH] =?utf8?q?tests/volser/vos-t.c:=20Don=E2=80=99t=20ignore?= =?utf8?q?=20return=20value=20of=20pipe?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 --- tests/volser/vos-t.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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; -- 2.39.5