From 938fedc5e27083e9cc6d5bcab48b95955f93d7ce Mon Sep 17 00:00:00 2001 From: ngie Date: Mon, 28 Dec 2015 02:36:57 +0000 Subject: [PATCH] Remove retval to fix a -Wunused-but-set-variable warning from gcc 4.9 MFC after: 1 week Sponsored by: EMC / Isilon Storage Division --- tests/sys/kern/pipe/pipe_overcommit1_test.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/tests/sys/kern/pipe/pipe_overcommit1_test.c b/tests/sys/kern/pipe/pipe_overcommit1_test.c index f8f881ddf6f9..4e40be7c699e 100644 --- a/tests/sys/kern/pipe/pipe_overcommit1_test.c +++ b/tests/sys/kern/pipe/pipe_overcommit1_test.c @@ -40,12 +40,11 @@ int main(void) { - int pipes[10000], returnval; + int pipes[10000]; unsigned int i; - for (i = 0; i < nitems(pipes); i++) { - returnval = pipe(&pipes[i]); - } + for (i = 0; i < nitems(pipes); i++) + (void)pipe(&pipes[i]); printf("PASS\n"); exit(0);