From 3a4ee6286814e850f66d84b6b8b18cd053649d35 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Thu, 21 Dec 2023 01:40:10 -0500 Subject: sim: warnings: enable -Wimplicit-fallthrough=5 It caught some legitimate bugs, so clearly it's helpful. --- sim/configure | 1 + sim/m4/sim_ac_option_warnings.m4 | 1 + 2 files changed, 2 insertions(+) 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 -- cgit v1.1