Add -Wimplicit-fallthrough
authorTom Tromey <tom@tromey.com>
Thu, 18 Aug 2016 16:56:11 +0000 (10:56 -0600)
committerTom Tromey <tom@tromey.com>
Sat, 5 May 2018 04:04:46 +0000 (22:04 -0600)
This adds -Wimplicit-fallthrough to the set of default warnings.

2018-05-04  Tom Tromey  <tom@tromey.com>

* configure: Rebuild.
* warning.m4 (AM_GDB_WARNINGS): Add -Wimplicit-fallthrough.

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

* configure: Rebuild.

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

index 27c4213..cfdc8b8 100644 (file)
@@ -1,5 +1,10 @@
 2018-05-04  Tom Tromey  <tom@tromey.com>
 
+       * configure: Rebuild.
+       * warning.m4 (AM_GDB_WARNINGS): Add -Wimplicit-fallthrough.
+
+2018-05-04  Tom Tromey  <tom@tromey.com>
+
        * linux-record.c (record_linux_system_call) <case
        RECORD_SYS_RECVFROM>: Add "break".
 
index 1aac930..96dd9fa 100755 (executable)
@@ -15366,7 +15366,8 @@ build_warnings="-Wall -Wpointer-arith \
 -Wno-sign-compare -Wno-narrowing -Wno-error=maybe-uninitialized \
 -Wno-mismatched-tags \
 -Wno-error=deprecated-register \
--Wsuggest-override"
+-Wsuggest-override \
+-Wimplicit-fallthrough"
 
 case "${host}" in
   *-*-mingw32*)
index 4726ef4..f1dd1dd 100644 (file)
@@ -1,3 +1,7 @@
+2018-05-04  Tom Tromey  <tom@tromey.com>
+
+       * configure: Rebuild.
+
 2018-05-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
            Pedro Alves <palves@redhat.com>
 
index 22b4c8a..919ed31 100755 (executable)
@@ -7173,7 +7173,8 @@ build_warnings="-Wall -Wpointer-arith \
 -Wno-sign-compare -Wno-narrowing -Wno-error=maybe-uninitialized \
 -Wno-mismatched-tags \
 -Wno-error=deprecated-register \
--Wsuggest-override"
+-Wsuggest-override \
+-Wimplicit-fallthrough"
 
 case "${host}" in
   *-*-mingw32*)
index f176a32..1cc3c68 100644 (file)
@@ -43,7 +43,8 @@ build_warnings="-Wall -Wpointer-arith \
 -Wno-sign-compare -Wno-narrowing -Wno-error=maybe-uninitialized \
 -Wno-mismatched-tags \
 -Wno-error=deprecated-register \
--Wsuggest-override"
+-Wsuggest-override \
+-Wimplicit-fallthrough"
 
 case "${host}" in
   *-*-mingw32*)