aboutsummaryrefslogtreecommitdiff
path: root/sim/avr
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2023-12-21 01:28:52 -0500
committerMike Frysinger <vapier@gentoo.org>2023-12-21 01:59:22 -0500
commit639bab3ca6e91fe7affbe8c231bb2f7f159abf1c (patch)
tree0d5457d3f94c461331ad655466bd42af2241f9e0 /sim/avr
parentbeb9aecf1216e8a85a438a03c1b61023b928e596 (diff)
downloadgdb-639bab3ca6e91fe7affbe8c231bb2f7f159abf1c.zip
gdb-639bab3ca6e91fe7affbe8c231bb2f7f159abf1c.tar.gz
gdb-639bab3ca6e91fe7affbe8c231bb2f7f159abf1c.tar.bz2
sim: avr: fix -Wimplicit-fallthrough warnings
Replace some fall through comments with the attribute.
Diffstat (limited to 'sim/avr')
-rw-r--r--sim/avr/interp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sim/avr/interp.c b/sim/avr/interp.c
index eef4ad9..377398e 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));