diff options
author | Mike Frysinger <vapier@gentoo.org> | 2023-12-21 01:40:10 -0500 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2023-12-21 01:59:23 -0500 |
commit | 3a4ee6286814e850f66d84b6b8b18cd053649d35 (patch) | |
tree | ab528acefeedf08b6455596a6a7f55ec7f2f3213 | |
parent | 849bdf4ead7a19ebde74fa4caec8643bf71da3e3 (diff) | |
download | gdb-3a4ee6286814e850f66d84b6b8b18cd053649d35.zip gdb-3a4ee6286814e850f66d84b6b8b18cd053649d35.tar.gz gdb-3a4ee6286814e850f66d84b6b8b18cd053649d35.tar.bz2 |
sim: warnings: enable -Wimplicit-fallthrough=5
It caught some legitimate bugs, so clearly it's helpful.
-rwxr-xr-x | sim/configure | 1 | ||||
-rw-r--r-- | sim/m4/sim_ac_option_warnings.m4 | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/sim/configure b/sim/configure index 53351bb..af37e1d 100755 --- a/sim/configure +++ b/sim/configure @@ -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 " diff --git a/sim/m4/sim_ac_option_warnings.m4 b/sim/m4/sim_ac_option_warnings.m4 index 3da1c6a..bdb99c4 100644 --- a/sim/m4/sim_ac_option_warnings.m4 +++ b/sim/m4/sim_ac_option_warnings.m4 @@ -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 |