sim: warnings: enable -Wimplicit-fallthrough=5
authorMike Frysinger <vapier@gentoo.org>
Thu, 21 Dec 2023 06:40:10 +0000 (01:40 -0500)
committerMike Frysinger <vapier@gentoo.org>
Thu, 21 Dec 2023 06:59:23 +0000 (01:59 -0500)
It caught some legitimate bugs, so clearly it's helpful.

sim/configure
sim/m4/sim_ac_option_warnings.m4

index 53351bb..af37e1d 100755 (executable)
@@ -15827,6 +15827,7 @@ build_warnings="-Wall -Wpointer-arith
 -Wempty-body -Wunused-but-set-parameter -Wunused-but-set-variable
 -Wno-sign-compare -Wno-error=maybe-uninitialized
 -Wno-error=deprecated-register
+-Wimplicit-fallthrough=5
 -Wduplicated-cond
 -Wmissing-declarations
 "
index 3da1c6a..bdb99c4 100644 (file)
@@ -44,6 +44,7 @@ build_warnings="-Wall -Wpointer-arith
 dnl C++ -Wno-mismatched-tags
 -Wno-error=deprecated-register
 dnl C++ -Wsuggest-override
+-Wimplicit-fallthrough=5
 -Wduplicated-cond
 dnl -Wshadow=local
 dnl C++ -Wdeprecated-copy