svn commit: r293144 - stable/10/tests/sys/kern/pipe

Garrett Cooper ngie at FreeBSD.org
Mon Jan 4 07:09:31 UTC 2016


Author: ngie
Date: Mon Jan  4 07:09:29 2016
New Revision: 293144
URL: https://svnweb.freebsd.org/changeset/base/293144

Log:
  MFC r292822:
  
  Remove retval to fix a -Wunused-but-set-variable warning from gcc 4.9

Modified:
  stable/10/tests/sys/kern/pipe/pipe_overcommit1_test.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/tests/sys/kern/pipe/pipe_overcommit1_test.c
==============================================================================
--- stable/10/tests/sys/kern/pipe/pipe_overcommit1_test.c	Mon Jan  4 07:06:46 2016	(r293143)
+++ stable/10/tests/sys/kern/pipe/pipe_overcommit1_test.c	Mon Jan  4 07:09:29 2016	(r293144)
@@ -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-all mailing list