Author: ngie
Date: Mon Dec 28 02:36:57 2015
New Revision: 292822
URL: https://svnweb.freebsd.org/changeset/base/292822

Log:
  Remove retval to fix a -Wunused-but-set-variable warning from gcc 4.9
  
  MFC after: 1 week
  Sponsored by: EMC / Isilon Storage Division

Modified:
  head/tests/sys/kern/pipe/pipe_overcommit1_test.c

Modified: head/tests/sys/kern/pipe/pipe_overcommit1_test.c
==============================================================================
--- head/tests/sys/kern/pipe/pipe_overcommit1_test.c    Mon Dec 28 02:34:59 
2015        (r292821)
+++ head/tests/sys/kern/pipe/pipe_overcommit1_test.c    Mon Dec 28 02:36:57 
2015        (r292822)
@@ -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);
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to