summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorngie <ngie@FreeBSD.org>2016-01-04 07:09:29 +0000
committerngie <ngie@FreeBSD.org>2016-01-04 07:09:29 +0000
commit803ee78f973b5e62ae764744369cf8e789dc28a7 (patch)
treee0d1527600320c7640097c4e93966ac58ef1964e /tests
parenta92a358887b321a113422f74d4b979eba1388279 (diff)
downloadFreeBSD-src-803ee78f973b5e62ae764744369cf8e789dc28a7.zip
FreeBSD-src-803ee78f973b5e62ae764744369cf8e789dc28a7.tar.gz
MFC r292822:
Remove retval to fix a -Wunused-but-set-variable warning from gcc 4.9
Diffstat (limited to 'tests')
-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