summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2010-06-11 11:26:31 +0200
committerJim Meyering <meyering@redhat.com>2010-06-11 11:26:31 +0200
commitef5acf202788003cdc70813756e173cd6b7dd5a1 (patch)
tree5398c94be346f9d652fddf1b8a98ba57dd0d3c5e /tests
parent9e1e9d8f3bac7fb52b026f0b628eb37d3a839097 (diff)
downloadgnulib-ef5acf202788003cdc70813756e173cd6b7dd5a1.tar.gz
test-sys_socket: avoid set-but-not-used warnings from gcc
* tests/test-sys_socket.c (main): Use "i" and "x", in order to avoid warning about set-but-not-used variables.
Diffstat (limited to 'tests')
-rw-r--r--tests/test-sys_socket.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test-sys_socket.c b/tests/test-sys_socket.c
index badf308b7a..6ea6a7390a 100644
--- a/tests/test-sys_socket.c
+++ b/tests/test-sys_socket.c
@@ -49,5 +49,5 @@ main (void)
x.ss_family = 42;
i = 42;
- return 0;
+ return ! (i + x.ss_family);
}