]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
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 53351bb05d15b6adee90cb472b235ec0cecc2e96..af37e1d84d9b2318c2c71e0e333976bf43f3156a 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 3da1c6a2e4a8015f3dff352baaa11c0acd1c8831..bdb99c4965275062431152e58757838e327eb863 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