This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH 8/8] Add -Wshadow=local


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(-)

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*)
-- 
2.17.1


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]