Commit Message
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(-)
@@ -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*)
@@ -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*)
@@ -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*)