]> git.ipfire.org Git - thirdparty/coreutils.git/commit
build: numfmt.c: avoid a shadowing warning
authorJim Meyering <meyering@fb.com>
Mon, 29 Jun 2015 17:25:07 +0000 (10:25 -0700)
committerJim Meyering <meyering@fb.com>
Mon, 29 Jun 2015 18:11:49 +0000 (11:11 -0700)
commit46416bb7c365e4faf44152dd66094c726dc714c8
tree43f03c5fd061d857692157d1b7a7c04de7d73be6
parentbadecb3f6ce21e9ad12402d4dd96d9a532499710
build: numfmt.c: avoid a shadowing warning

* 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]
src/numfmt.c