Remove retval to fix a -Wunused-but-set-variable warning from gcc 4.9

MFC after: 1 week
Sponsored by: EMC / Isilon Storage Division
This commit is contained in:
ngie 2015-12-28 02:36:57 +00:00
parent d248315c93
commit 938fedc5e2

View File

@ -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);