From: Tom Tromey Date: Mon, 16 Oct 2023 19:36:03 +0000 (-0600) Subject: Switch to -Wimplicit-fallthrough=5 X-Git-Tag: binutils-2_42~784 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d57f38ec74f12b970f3186ac54a9a0f00bf993c7;p=thirdparty%2Fbinutils-gdb.git Switch to -Wimplicit-fallthrough=5 This changes the various gdb-related directories to use -Wimplicit-fallthrough=5, meaning that only the fallthrough attribute can be used in switches -- special 'fallthrough' comments will no longer be usable. Approved-By: Pedro Alves --- diff --git a/gdb/configure b/gdb/configure index 7e411cd7668..3dd73b0a2c8 100755 --- a/gdb/configure +++ b/gdb/configure @@ -31161,7 +31161,7 @@ build_warnings="-Wall -Wpointer-arith \ -Wno-mismatched-tags \ -Wno-error=deprecated-register \ -Wsuggest-override \ --Wimplicit-fallthrough=3 \ +-Wimplicit-fallthrough=5 \ -Wduplicated-cond \ -Wshadow=local \ -Wdeprecated-copy \ diff --git a/gdbserver/configure b/gdbserver/configure index dc2ecd884a8..f1292f9b707 100755 --- a/gdbserver/configure +++ b/gdbserver/configure @@ -13697,7 +13697,7 @@ build_warnings="-Wall -Wpointer-arith \ -Wno-mismatched-tags \ -Wno-error=deprecated-register \ -Wsuggest-override \ --Wimplicit-fallthrough=3 \ +-Wimplicit-fallthrough=5 \ -Wduplicated-cond \ -Wshadow=local \ -Wdeprecated-copy \ diff --git a/gdbsupport/configure b/gdbsupport/configure index 3f262a5da78..b501b36373f 100755 --- a/gdbsupport/configure +++ b/gdbsupport/configure @@ -14162,7 +14162,7 @@ build_warnings="-Wall -Wpointer-arith \ -Wno-mismatched-tags \ -Wno-error=deprecated-register \ -Wsuggest-override \ --Wimplicit-fallthrough=3 \ +-Wimplicit-fallthrough=5 \ -Wduplicated-cond \ -Wshadow=local \ -Wdeprecated-copy \ diff --git a/gdbsupport/warning.m4 b/gdbsupport/warning.m4 index ea573c63c4a..774f0208e9b 100644 --- a/gdbsupport/warning.m4 +++ b/gdbsupport/warning.m4 @@ -44,7 +44,7 @@ build_warnings="-Wall -Wpointer-arith \ -Wno-mismatched-tags \ -Wno-error=deprecated-register \ -Wsuggest-override \ --Wimplicit-fallthrough=3 \ +-Wimplicit-fallthrough=5 \ -Wduplicated-cond \ -Wshadow=local \ -Wdeprecated-copy \