coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

maint: numfmt.c: avoid a shadowing warning


From: Jim Meyering
Subject: maint: numfmt.c: avoid a shadowing warning
Date: Mon, 29 Jun 2015 10:27:53 -0700

Here's another change required to make --enable-gcc-warnings
work with systems that use gnulib's getopt replacement:

    * src/numfmt.c (parse_field_arg): Rename parameter s/optarg/arg/,
    to avoid shadowing getopt's global variable.
    Otherwise, building on OS X, with --enable-gcc-warnings, I saw this:

      In file included from src/numfmt.c:19:0:
      src/numfmt.c: In function 'parse_field_arg':
      ./lib/config.h:3109:25: error: declaration of 'rpl_optarg' shadows\
        a global declaration [-Werror=shadow]

Attachment: 0001-build-numfmt.c-avoid-a-shadowing-warning.patch
Description: Binary data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]