Mercurial > hg > octave-lojdl > gnulib-hg
changeset 13416:8f8a7ac4224f
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.
author | Jim Meyering <meyering@redhat.com> |
---|---|
date | Fri, 11 Jun 2010 22:09:27 +0200 |
parents | a884db63982b |
children | d4657f4efc16 |
files | ChangeLog tests/test-sys_socket.c |
diffstat | 2 files changed, 13 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2010-06-11 Jim Meyering <meyering@redhat.com> + + 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. + 2010-06-11 Bruno Haible <bruno@clisp.org> Avoid some more warnings from "gcc -Wwrite-strings".