summaryrefslogtreecommitdiffstats
path: root/tests/sys
diff options
context:
space:
mode:
authorngie <ngie@FreeBSD.org>2015-12-28 02:36:57 +0000
committerngie <ngie@FreeBSD.org>2015-12-28 02:36:57 +0000
commit938fedc5e27083e9cc6d5bcab48b95955f93d7ce (patch)
tree40a53e6c6af7d435e7e23f5e764e703e8ac3ab8d /tests/sys
parentd248315c93517c0df95a1ffdecca53bd90bb89c1 (diff)
downloadFreeBSD-src-938fedc5e27083e9cc6d5bcab48b95955f93d7ce.zip
FreeBSD-src-938fedc5e27083e9cc6d5bcab48b95955f93d7ce.tar.gz
Remove retval to fix a -Wunused-but-set-variable warning from gcc 4.9
MFC after: 1 week Sponsored by: EMC / Isilon Storage Division
Diffstat (limited to 'tests/sys')
-rw-r--r--tests/sys/kern/pipe/pipe_overcommit1_test.c7
1 files 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 f8f881d..4e40be7 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);
OpenPOWER on IntegriCloud