Date: Mon, 4 Jan 2016 07:09:30 +0000 (UTC) From: Garrett Cooper <ngie@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org Subject: svn commit: r293144 - stable/10/tests/sys/kern/pipe Message-ID: <201601040709.u0479UlH083000@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201601040709.u0479UlH083000>