From: Tom Tromey Date: Thu, 18 Aug 2016 16:56:11 +0000 (-0600) Subject: Add -Wimplicit-fallthrough X-Git-Tag: users/gbenson/thread_db-test/2018-05-23~114 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=85e26832a019ffc00dad9f1eb7e670b85c8eca7f;p=thirdparty%2Fbinutils-gdb.git 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. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 27c42130eb9..cfdc8b87fd7 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 22b4c8af682..919ed316653 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 f176a3291aa..1cc3c683985 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*)