diff options
author | mark <mark@138bc75d-0d04-0410-961f-82ee72b054a4> | 2016-11-14 19:46:26 +0000 |
---|---|---|
committer | mark <mark@138bc75d-0d04-0410-961f-82ee72b054a4> | 2016-11-14 19:46:26 +0000 |
commit | b11bc8f72104c9e5db02c8aad4170f254cad2feb (patch) | |
tree | c4fc1908fba7c62ba6537c7d7c1463e250c5dae7 /libiberty | |
parent | a49621cfbf473b25c9b35c2c544aca4924e706c0 (diff) | |
download | gcc-b11bc8f72104c9e5db02c8aad4170f254cad2feb.tar.gz |
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: svn+ssh://gcc.gnu.org/svn/gcc/trunk@242396 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libiberty')
-rw-r--r-- | libiberty/ChangeLog | 5 | ||||
-rwxr-xr-x | libiberty/configure | 3 | ||||
-rw-r--r-- | libiberty/configure.ac | 3 |
3 files changed, 9 insertions, 2 deletions
diff --git a/libiberty/ChangeLog b/libiberty/ChangeLog index 727ffd39007..2d6cd4cc47b 100644 --- a/libiberty/ChangeLog +++ b/libiberty/ChangeLog @@ -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. 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 diff --git a/libiberty/configure.ac b/libiberty/configure.ac index 9d3f2988d5d..1aa0c7c7f42 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 |