This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH 8/8] Add -Wshadow=local
- From: Tom Tromey <tom at tromey dot com>
- To: gdb-patches at sourceware dot org
- Cc: Tom Tromey <tom at tromey dot com>
- Date: Sat, 22 Sep 2018 22:08:14 -0600
- Subject: [PATCH 8/8] Add -Wshadow=local
- References: <20180923040814.27941-1-tom@tromey.com>
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