aboutsummaryrefslogtreecommitdiff
path: root/gdbsupport
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2023-10-16 13:36:03 -0600
committerTom Tromey <tom@tromey.com>2023-11-29 14:29:43 -0700
commitd57f38ec74f12b970f3186ac54a9a0f00bf993c7 (patch)
tree5e93b3e9daf4d71a61304851bc1deb4b3143067d /gdbsupport
parentd182e39881061b11d1eb85426d9a6953e3171bf5 (diff)
downloadgdb-d57f38ec74f12b970f3186ac54a9a0f00bf993c7.zip
gdb-d57f38ec74f12b970f3186ac54a9a0f00bf993c7.tar.gz
gdb-d57f38ec74f12b970f3186ac54a9a0f00bf993c7.tar.bz2
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 <pedro@palves.net>
Diffstat (limited to 'gdbsupport')
-rwxr-xr-xgdbsupport/configure2
-rw-r--r--gdbsupport/warning.m42
2 files changed, 2 insertions, 2 deletions
diff --git a/gdbsupport/configure b/gdbsupport/configure
index 3f262a5..b501b36 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 ea573c6..774f020 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 \