aboutsummaryrefslogtreecommitdiff
path: root/libiberty/configure
diff options
context:
space:
mode:
authorMark Wielaard <mark@klomp.org>2016-11-14 19:46:26 +0000
committerMark Wielaard <mark@klomp.org>2016-11-18 11:06:18 +0100
commit59d2699cfd30f9defc454be17415c0a518ece32b (patch)
tree0bbd49270925a86f42528bf6432ce24ccebdba1d /libiberty/configure
parenta4ddf8dc72f0ac10c3459a91949eb1bdb07ed10d (diff)
downloadgdb-59d2699cfd30f9defc454be17415c0a518ece32b.zip
gdb-59d2699cfd30f9defc454be17415c0a518ece32b.tar.gz
gdb-59d2699cfd30f9defc454be17415c0a518ece32b.tar.bz2
libiberty: Add -Wshadow=local to warning flags (if supported).
libiberty/ChangeLog: * configure.ac (ac_libiberty_warn_cflags): Add -Wshadow=local. * configure: Regenerated.
Diffstat (limited to 'libiberty/configure')
-rwxr-xr-xlibiberty/configure3
1 files changed, 2 insertions, 1 deletions
diff --git a/libiberty/configure b/libiberty/configure
index 0f8e9b9..5c4dda5 100755
--- a/libiberty/configure
+++ b/libiberty/configure
@@ -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