diff options
author | Jim Meyering <meyering@redhat.com> | 2010-06-11 22:09:27 +0200 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2010-06-11 22:09:43 +0200 |
commit | bfbd822767f532ab05e24bda5b67b992f3562321 (patch) | |
tree | f1ebe51af2d32fad1cec875c4faaa086226c1c89 /tests | |
parent | af5c3b38e1c9897a7a53fa7285ea58aabb3963b9 (diff) | |
download | gnulib-bfbd822767f532ab05e24bda5b67b992f3562321.tar.gz |
test-sys_socket: mark variables as used more readably
* tests/test-sys_socket.c (main): Mark otherwise unused variables
as "used" explicitly via (void) statement casts. This is more
readable than using them in an artificial return expression.
Suggestion from Bruno Haible.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test-sys_socket.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/test-sys_socket.c b/tests/test-sys_socket.c index 6ea6a7390a..1c3b5607cd 100644 --- a/tests/test-sys_socket.c +++ b/tests/test-sys_socket.c @@ -49,5 +49,9 @@ main (void) x.ss_family = 42; i = 42; - return ! (i + x.ss_family); + /* Tell the compiler that these variables are used. */ + (void) x; + (void) i; + + return 0; } |