Mercurial > hg > octave-lyh > gnulib-hg
changeset 16307:8c316b9e40cb
tests: avoid spurious warnings about gl_sockets_startup
Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
reporting a "statement with no effect".
* tests/test-accept.c (main): Mark as "(void)".
* tests/test-accept4.c (main): Likewise.
* tests/test-bind.c (main): Likewise.
* tests/test-connect.c (main): Likewise.
* tests/test-getpeername.c (main): Likewise.
* tests/test-getsockname.c (main): Likewise.
* tests/test-getsockopt.c (main): Likewise.
* tests/test-listen.c (main): Likewise.
* tests/test-recv.c (main): Likewise.
* tests/test-recvfrom.c (main): Likewise.
* tests/test-send.c (main): Likewise.
* tests/test-sendto.c (main): Likewise.
* tests/test-setsockopt.c (main): Likewise.
* tests/test-shutdown.c (main): Likewise.
author | Jim Meyering <meyering@redhat.com> |
---|---|
date | Mon, 23 Jan 2012 15:51:02 +0100 |
parents | 78e1216a8ee3 |
children | 6a9ab4fadad6 |
files | ChangeLog tests/test-accept.c tests/test-accept4.c tests/test-bind.c tests/test-connect.c tests/test-getpeername.c tests/test-getsockname.c tests/test-getsockopt.c tests/test-listen.c tests/test-recv.c tests/test-recvfrom.c tests/test-send.c tests/test-sendto.c tests/test-setsockopt.c tests/test-shutdown.c |
diffstat | 15 files changed, 35 insertions(+), 14 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,24 @@ +2012-01-23 Jim Meyering <meyering@redhat.com> + + tests: avoid spurious warnings about gl_sockets_startup + Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value + would warn about every use of "gl_sockets_startup (SOCKETS_1_1);" + reporting a "statement with no effect". + * tests/test-accept.c (main): Mark as "(void)". + * tests/test-accept4.c (main): Likewise. + * tests/test-bind.c (main): Likewise. + * tests/test-connect.c (main): Likewise. + * tests/test-getpeername.c (main): Likewise. + * tests/test-getsockname.c (main): Likewise. + * tests/test-getsockopt.c (main): Likewise. + * tests/test-listen.c (main): Likewise. + * tests/test-recv.c (main): Likewise. + * tests/test-recvfrom.c (main): Likewise. + * tests/test-send.c (main): Likewise. + * tests/test-sendto.c (main): Likewise. + * tests/test-setsockopt.c (main): Likewise. + * tests/test-shutdown.c (main): Likewise. + 2012-01-21 Bruno Haible <bruno@clisp.org> locale-fr.m4: Fix for Android.
--- a/tests/test-accept.c +++ b/tests/test-accept.c @@ -30,7 +30,7 @@ int main (void) { - gl_sockets_startup (SOCKETS_1_1); + (void) gl_sockets_startup (SOCKETS_1_1); /* Test behaviour for invalid file descriptors. */ {
--- a/tests/test-accept4.c +++ b/tests/test-accept4.c @@ -33,7 +33,7 @@ int main (void) { - gl_sockets_startup (SOCKETS_1_1); + (void) gl_sockets_startup (SOCKETS_1_1); /* Test behaviour for invalid file descriptors. */ {
--- a/tests/test-bind.c +++ b/tests/test-bind.c @@ -31,7 +31,7 @@ int main (void) { - gl_sockets_startup (SOCKETS_1_1); + (void) gl_sockets_startup (SOCKETS_1_1); /* Test behaviour for invalid file descriptors. */ {
--- a/tests/test-connect.c +++ b/tests/test-connect.c @@ -31,7 +31,7 @@ int main (void) { - gl_sockets_startup (SOCKETS_1_1); + (void) gl_sockets_startup (SOCKETS_1_1); /* Test behaviour for invalid file descriptors. */ {
--- a/tests/test-getpeername.c +++ b/tests/test-getpeername.c @@ -30,7 +30,7 @@ int main (void) { - gl_sockets_startup (SOCKETS_1_1); + (void) gl_sockets_startup (SOCKETS_1_1); /* Test behaviour for invalid file descriptors. */ {
--- a/tests/test-getsockname.c +++ b/tests/test-getsockname.c @@ -30,7 +30,7 @@ int main (void) { - gl_sockets_startup (SOCKETS_1_1); + (void) gl_sockets_startup (SOCKETS_1_1); /* Test behaviour for invalid file descriptors. */ {
--- a/tests/test-getsockopt.c +++ b/tests/test-getsockopt.c @@ -29,7 +29,7 @@ int main (void) { - gl_sockets_startup (SOCKETS_1_1); + (void) gl_sockets_startup (SOCKETS_1_1); /* Test behaviour for invalid file descriptors. */ {
--- a/tests/test-listen.c +++ b/tests/test-listen.c @@ -29,7 +29,7 @@ int main (void) { - gl_sockets_startup (SOCKETS_1_1); + (void) gl_sockets_startup (SOCKETS_1_1); /* Test behaviour for invalid file descriptors. */ {
--- a/tests/test-recv.c +++ b/tests/test-recv.c @@ -29,7 +29,7 @@ int main (void) { - gl_sockets_startup (SOCKETS_1_1); + (void) gl_sockets_startup (SOCKETS_1_1); /* Test behaviour for invalid file descriptors. */ {
--- a/tests/test-recvfrom.c +++ b/tests/test-recvfrom.c @@ -32,7 +32,7 @@ int main (void) { - gl_sockets_startup (SOCKETS_1_1); + (void) gl_sockets_startup (SOCKETS_1_1); /* Test behaviour for invalid file descriptors. */ {
--- a/tests/test-send.c +++ b/tests/test-send.c @@ -29,7 +29,7 @@ int main (void) { - gl_sockets_startup (SOCKETS_1_1); + (void) gl_sockets_startup (SOCKETS_1_1); /* Test behaviour for invalid file descriptors. */ {
--- a/tests/test-sendto.c +++ b/tests/test-sendto.c @@ -33,7 +33,7 @@ int main (void) { - gl_sockets_startup (SOCKETS_1_1); + (void) gl_sockets_startup (SOCKETS_1_1); /* Test behaviour for invalid file descriptors. */ {