aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2016-08-18 10:56:11 -0600
committerTom Tromey <tom@tromey.com>2018-05-04 22:04:46 -0600
commit85e26832a019ffc00dad9f1eb7e670b85c8eca7f (patch)
treefaca0861d37d6f9568ceab9b9153f0e391395fef
parent449b1ac7ad5f3da9ef689c91144aa057cb253df6 (diff)
downloadgdb-85e26832a019ffc00dad9f1eb7e670b85c8eca7f.zip
gdb-85e26832a019ffc00dad9f1eb7e670b85c8eca7f.tar.gz
gdb-85e26832a019ffc00dad9f1eb7e670b85c8eca7f.tar.bz2
Add -Wimplicit-fallthrough
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.
-rw-r--r--gdb/ChangeLog5
-rwxr-xr-xgdb/configure3
-rw-r--r--gdb/gdbserver/ChangeLog4
-rwxr-xr-xgdb/gdbserver/configure3
-rw-r--r--gdb/warning.m43
5 files changed, 15 insertions, 3 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 27c4213..cfdc8b8 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -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".
diff --git a/gdb/configure b/gdb/configure
index 1aac930..96dd9fa 100755
--- a/gdb/configure
+++ b/gdb/configure
@@ -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*)
diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog
index 4726ef4..f1dd1dd 100644
--- a/gdb/gdbserver/ChangeLog
+++ b/gdb/gdbserver/ChangeLog
@@ -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>
diff --git a/gdb/gdbserver/configure b/gdb/gdbserver/configure
index 22b4c8a..919ed31 100755
--- a/gdb/gdbserver/configure
+++ b/gdb/gdbserver/configure
@@ -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*)
diff --git a/gdb/warning.m4 b/gdb/warning.m4
index f176a32..1cc3c68 100644
--- a/gdb/warning.m4
+++ b/gdb/warning.m4
@@ -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*)