inet_ntop: guard extra work by IF_LINT
authorEric Blake <eblake@redhat.com>
Thu, 12 Jan 2012 15:44:08 +0000 (08:44 -0700)
committerEric Blake <eblake@redhat.com>
Thu, 12 Jan 2012 15:52:21 +0000 (08:52 -0700)
commit0764a0a97bb929593031f74db3cc8f7ea2b6df3b
treedc15cdbeb7ad8e8a90d8b8845463e79ea931c2a6
parent16f49939147b27628041daa5cf01e9f7ada6a44d
inet_ntop: guard extra work by IF_LINT

No need to penalize the code just to silence a gcc warning, so
follow the conventions used elsewhere in gnulib.  Clients that
want to use extra warnings should also be using -Dlint.

* lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
better code generation when not checking for warnings.
Suggested by Paul Eggert and Jim Meyering.

Signed-off-by: Eric Blake <eblake@redhat.com>
ChangeLog
lib/inet_ntop.c