aboutsummaryrefslogtreecommitdiff
path: root/libiberty/configure
diff options
context:
space:
mode:
authormark <mark@138bc75d-0d04-0410-961f-82ee72b054a4>2016-11-14 19:46:26 +0000
committermark <mark@138bc75d-0d04-0410-961f-82ee72b054a4>2016-11-14 19:46:26 +0000
commit2f9303e301c40c0e241ed28f57ba33b8815b3503 (patch)
treec4fc1908fba7c62ba6537c7d7c1463e250c5dae7 /libiberty/configure
parentce3601b29bee41bbedd70b074349aec7f49f6ed9 (diff)
libiberty: Add -Wshadow=local to warning flags (if supported).
libiberty/ChangeLog: * configure.ac (ac_libiberty_warn_cflags): Add -Wshadow=local. * configure: Regenerated. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@242396 138bc75d-0d04-0410-961f-82ee72b054a4
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 0f8e9b925e5..5c4dda5d1d5 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