From: Mike Frysinger Date: Thu, 21 Dec 2023 06:28:52 +0000 (-0500) Subject: sim: avr: fix -Wimplicit-fallthrough warnings X-Git-Tag: binutils-2_42~457 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=639bab3ca6e91fe7affbe8c231bb2f7f159abf1c;p=thirdparty%2Fbinutils-gdb.git sim: avr: fix -Wimplicit-fallthrough warnings Replace some fall through comments with the attribute. --- 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));