aboutsummaryrefslogtreecommitdiff
path: root/libiberty/configure.ac
diff options
context:
space:
mode:
authorMark Wielaard <mark@klomp.org>2016-11-14 19:46:26 +0000
committerMark Wielaard <mark@gcc.gnu.org>2016-11-14 19:46:26 +0000
commit3eb89071d6ffc652b0bde7aa0a5ea61da6ac96f6 (patch)
treec4fc1908fba7c62ba6537c7d7c1463e250c5dae7 /libiberty/configure.ac
parent8e745a17093aa4b5965fcf327c9d76f27e6c852f (diff)
downloadgcc-3eb89071d6ffc652b0bde7aa0a5ea61da6ac96f6.zip
gcc-3eb89071d6ffc652b0bde7aa0a5ea61da6ac96f6.tar.gz
gcc-3eb89071d6ffc652b0bde7aa0a5ea61da6ac96f6.tar.bz2
libiberty: Add -Wshadow=local to warning flags (if supported).
libiberty/ChangeLog: * configure.ac (ac_libiberty_warn_cflags): Add -Wshadow=local. * configure: Regenerated. From-SVN: r242396
Diffstat (limited to 'libiberty/configure.ac')
-rw-r--r--libiberty/configure.ac3
1 files changed, 2 insertions, 1 deletions
diff --git a/libiberty/configure.ac b/libiberty/configure.ac
index 9d3f298..1aa0c7c 100644
--- a/libiberty/configure.ac
+++ b/libiberty/configure.ac
@@ -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