libiberty: Add -Wshadow=local to warning flags (if supported).
[deliverable/binutils-gdb.git] / libiberty / configure
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
This page took 0.023977 seconds and 4 git commands to generate.