From 639bab3ca6e91fe7affbe8c231bb2f7f159abf1c Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Thu, 21 Dec 2023 01:28:52 -0500 Subject: [PATCH] sim: avr: fix -Wimplicit-fallthrough warnings Replace some fall through comments with the attribute. --- sim/avr/interp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sim/avr/interp.c b/sim/avr/interp.c index eef4ad96ec2..377398e94e2 100644 --- a/sim/avr/interp.c +++ b/sim/avr/interp.c @@ -896,7 +896,7 @@ step_once (SIM_CPU *cpu) case OP_reti: sram[SREG] |= SREG_I; - /* Fall through */ + ATTRIBUTE_FALLTHROUGH; case OP_ret: { const struct avr_sim_state *state = AVR_SIM_STATE (CPU_STATE (cpu));