From 85e26832a019ffc00dad9f1eb7e670b85c8eca7f Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Thu, 18 Aug 2016 10:56:11 -0600 Subject: [PATCH] Add -Wimplicit-fallthrough This adds -Wimplicit-fallthrough to the set of default warnings. 2018-05-04 Tom Tromey * configure: Rebuild. * warning.m4 (AM_GDB_WARNINGS): Add -Wimplicit-fallthrough. gdbserver/ChangeLog 2018-05-04 Tom Tromey * 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/ChangeLog b/gdb/ChangeLog index 27c42130eb..cfdc8b87fd 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2018-05-04 Tom Tromey + + * configure: Rebuild. + * warning.m4 (AM_GDB_WARNINGS): Add -Wimplicit-fallthrough. + 2018-05-04 Tom Tromey * linux-record.c (record_linux_system_call) + + * configure: Rebuild. + 2018-05-04 Jan Kratochvil Pedro Alves diff --git a/gdb/gdbserver/configure b/gdb/gdbserver/configure index 22b4c8af68..919ed31665 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 f176a3291a..1cc3c68398 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*) -- 2.34.1