libiberty: Add -Wshadow=local to warning flags (if supported).
authorMark Wielaard <mark@klomp.org>
Mon, 14 Nov 2016 19:46:26 +0000 (19:46 +0000)
committerMark Wielaard <mark@klomp.org>
Fri, 18 Nov 2016 10:06:18 +0000 (11:06 +0100)
libiberty/ChangeLog:

       * configure.ac (ac_libiberty_warn_cflags): Add -Wshadow=local.
       * configure: Regenerated.

libiberty/ChangeLog
libiberty/configure
libiberty/configure.ac

index e532460ccb2aafa7a4fba754a2bffeb26bb38e84..d0c5595fce606e1cdd58e0e6bd9c213af04162c5 100644 (file)
@@ -1,3 +1,8 @@
+2016-11-06  Mark Wielaard  <mark@klomp.org>
+
+       * configure.ac (ac_libiberty_warn_cflags): Add -Wshadow=local.
+       * configure: Regenerated.
+
 2016-11-07  Jason Merrill  <jason@redhat.com>
 
        * cp-demangle.c (is_fnqual_component_type): New.
index 0f8e9b925e5f9ff2b600a3e37455c450c41bfa6a..5c4dda5d1d559d88982d818c83cadc23e5090491 100755 (executable)
@@ -4398,7 +4398,8 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
 ac_libiberty_warn_cflags=
 save_CFLAGS="$CFLAGS"
 for real_option in -W -Wall -Wwrite-strings -Wc++-compat \
-                         -Wstrict-prototypes; do
+                         -Wstrict-prototypes \
+                         -Wshadow=local; do
   # Do the check with the no- prefix removed since gcc silently
   # accepts any -Wno-* option on purpose
   case $real_option in
index 9d3f2988d5d240d95a2bdc3829e8837efcc6b898..1aa0c7c7f4237ca95187473cd406e66849553db0 100644 (file)
@@ -160,7 +160,8 @@ AC_SYS_LARGEFILE
 AC_PROG_CPP_WERROR
 
 ACX_PROG_CC_WARNING_OPTS([-W -Wall -Wwrite-strings -Wc++-compat \
-                         -Wstrict-prototypes], [ac_libiberty_warn_cflags])
+                         -Wstrict-prototypes \
+                         -Wshadow=local], [ac_libiberty_warn_cflags])
 ACX_PROG_CC_WARNING_ALMOST_PEDANTIC([], [ac_libiberty_warn_cflags])
 
 AC_PROG_CC_C_O
This page took 0.032018 seconds and 4 git commands to generate.