git: libc: Silence a bunch of set-but-not-used errors found by gcc 5.0

John Marino marino at crater.dragonflybsd.org
Mon Feb 9 15:36:59 PST 2015


commit cf515c3a6f3a8964ad592e524442bc628f8ed63b
Author: John Marino <draco at marino.st>
Date:   Tue Feb 10 00:36:18 2015 +0100

    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.

Summary of changes:
 lib/libc/citrus/citrus_prop.c  |  5 +----
 lib/libc/gen/getcap.c          |  3 +--
 lib/libc/gen/getgrent.c        | 14 +++++++-------
 lib/libc/gen/getpwent.c        | 12 ++++++------
 lib/libc/net/gethostbydns.c    |  6 ++++--
 lib/libc/net/gethostbyht.c     |  6 ++++--
 lib/libc/net/gethostbynis.c    |  6 ++++--
 lib/libc/net/gethostnamadr.c   | 16 ++++++++--------
 lib/libc/net/getnetbydns.c     |  6 ++++--
 lib/libc/net/getnetbyht.c      |  6 ++++--
 lib/libc/net/getnetbynis.c     |  6 ++++--
 lib/libc/net/getnetnamadr.c    | 16 ++++++++--------
 lib/libc/net/getprotoent.c     | 12 ++++++------
 lib/libc/net/getservent.c      | 16 ++++++++--------
 lib/libc/net/nscachedcli.c     |  4 ++--
 lib/libc/regex/engine.c        |  2 +-
 lib/libc/rpc/clnt_dg.c         |  3 +--
 lib/libc/rpc/getrpcent.c       | 12 ++++++------
 lib/libc/rpc/rpc_soc.c         |  2 --
 lib/libc/stdio/printf-pos.c    |  6 ------
 lib/libc/stdio/vfwscanf.c      |  2 +-
 lib/libc/stdio/xprintf_float.c |  3 ---
 lib/libc/stdlib/nmalloc.c      |  2 +-
 23 files changed, 81 insertions(+), 85 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/cf515c3a6f3a8964ad592e524442bc628f8ed63b


-- 
DragonFly BSD source repository



More information about the Commits mailing list