libc: Silence a bunch of set-but-not-used errors found by gcc 5.0
authorJohn Marino <draco@marino.st>
Mon, 9 Feb 2015 23:36:18 +0000 (00:36 +0100)
committerJohn Marino <draco@marino.st>
Mon, 9 Feb 2015 23:36:18 +0000 (00:36 +0100)
commitcf515c3a6f3a8964ad592e524442bc628f8ed63b
treed2c968cd3ee9837d13748e3581ec70d5dd394e17
parent4765c386077e61794b803c7718df6d32f25adfcc
libc: Silence a bunch of set-but-not-used errors found by gcc 5.0

During testing of upcoming base gcc 5.0, several libc files failed to
compile with -Werror set.  This commit will silence the errors.  For the
majority of these, I designed the variables as "__unused" so the compiler
knows that their (lack of) use is intentional.  For the rest, I just
removed the variables completely.
23 files changed:
lib/libc/citrus/citrus_prop.c
lib/libc/gen/getcap.c
lib/libc/gen/getgrent.c
lib/libc/gen/getpwent.c
lib/libc/net/gethostbydns.c
lib/libc/net/gethostbyht.c
lib/libc/net/gethostbynis.c
lib/libc/net/gethostnamadr.c
lib/libc/net/getnetbydns.c
lib/libc/net/getnetbyht.c
lib/libc/net/getnetbynis.c
lib/libc/net/getnetnamadr.c
lib/libc/net/getprotoent.c
lib/libc/net/getservent.c
lib/libc/net/nscachedcli.c
lib/libc/regex/engine.c
lib/libc/rpc/clnt_dg.c
lib/libc/rpc/getrpcent.c
lib/libc/rpc/rpc_soc.c
lib/libc/stdio/printf-pos.c
lib/libc/stdio/vfwscanf.c
lib/libc/stdio/xprintf_float.c
lib/libc/stdlib/nmalloc.c