svn commit: r292822 - head/tests/sys/kern/pipe
Garrett Cooper
ngie at FreeBSD.org
Mon Dec 28 02:36:59 UTC 2015
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);
More information about the svn-src-head
mailing list