[8/8] Add -Wshadow=local

Message ID 20180923040814.27941-9-tom@tromey.com
State New, archived
Headers

Commit Message

Tom Tromey Sept. 23, 2018, 4:08 a.m. UTC
  This adds -Wshadow=local to configure.

gdb/ChangeLog
2018-09-22  Tom Tromey  <tom@tromey.com>

	* configure: Rebuild.
	* warning.m4 (AM_GDB_WARNINGS): Add -Wshadow=local.

gdb/gdbserver/ChangeLog
2018-09-22  Tom Tromey  <tom@tromey.com>

	* configure: Rebuild.
---
 gdb/ChangeLog           | 5 +++++
 gdb/configure           | 3 ++-
 gdb/gdbserver/ChangeLog | 4 ++++
 gdb/gdbserver/configure | 3 ++-
 gdb/warning.m4          | 3 ++-
 5 files changed, 15 insertions(+), 3 deletions(-)
  

Patch

diff --git a/gdb/configure b/gdb/configure
index a5d6e747e7..79587453dd 100755
--- a/gdb/configure
+++ b/gdb/configure
@@ -15418,7 +15418,8 @@  build_warnings="-Wall -Wpointer-arith \
 -Wno-error=deprecated-register \
 -Wsuggest-override \
 -Wimplicit-fallthrough=3 \
--Wduplicated-cond"
+-Wduplicated-cond \
+-Wshadow=local"
 
 case "${host}" in
   *-*-mingw32*)
diff --git a/gdb/gdbserver/configure b/gdb/gdbserver/configure
index f5cbbaea78..f87f25f342 100755
--- a/gdb/gdbserver/configure
+++ b/gdb/gdbserver/configure
@@ -7245,7 +7245,8 @@  build_warnings="-Wall -Wpointer-arith \
 -Wno-error=deprecated-register \
 -Wsuggest-override \
 -Wimplicit-fallthrough=3 \
--Wduplicated-cond"
+-Wduplicated-cond \
+-Wshadow=local"
 
 case "${host}" in
   *-*-mingw32*)
diff --git a/gdb/warning.m4 b/gdb/warning.m4
index 82170acc80..42ab1b53d5 100644
--- a/gdb/warning.m4
+++ b/gdb/warning.m4
@@ -45,7 +45,8 @@  build_warnings="-Wall -Wpointer-arith \
 -Wno-error=deprecated-register \
 -Wsuggest-override \
 -Wimplicit-fallthrough=3 \
--Wduplicated-cond"
+-Wduplicated-cond \
+-Wshadow=local"
 
 case "${host}" in
   *-*-mingw32*)