Add -Wshadow=local
authorTom Tromey <tom@tromey.com>
Sat, 21 Apr 2018 22:09:10 +0000 (16:09 -0600)
committerTom Tromey <tom@tromey.com>
Fri, 5 Oct 2018 04:51:49 +0000 (22:51 -0600)
This adds -Wshadow=local to configure.

gdb/ChangeLog
2018-10-04  Tom Tromey  <tom@tromey.com>

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

gdb/gdbserver/ChangeLog
2018-10-04  Tom Tromey  <tom@tromey.com>

* configure: Rebuild.

gdb/ChangeLog
gdb/configure
gdb/gdbserver/ChangeLog
gdb/gdbserver/configure
gdb/warning.m4

index 3bf08bc..912bdec 100644 (file)
@@ -1,5 +1,10 @@
 2018-10-04  Tom Tromey  <tom@tromey.com>
 
+       * configure: Rebuild.
+       * warning.m4 (AM_GDB_WARNINGS): Add -Wshadow=local.
+
+2018-10-04  Tom Tromey  <tom@tromey.com>
+
        * guile/scm-frame.c (gdbscm_frame_read_var): Remove inner
        declaration of "block".
 
index 0ba8014..304adc8 100755 (executable)
@@ -15462,7 +15462,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*)
index 5e35062..da4c24f 100644 (file)
@@ -1,5 +1,9 @@
 2018-10-04  Tom Tromey  <tom@tromey.com>
 
+       * configure: Rebuild.
+
+2018-10-04  Tom Tromey  <tom@tromey.com>
+
        * server.c (handle_status): Rename inner "thread".
        (process_serial_event): Declare "res" in 'm' case.
        * linux-low.c (last_thread_of_process_p, find_lwp_pid)
index 4384665..a46b865 100755 (executable)
@@ -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*)
index 82170ac..42ab1b5 100644 (file)
@@ -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*)