projects
/
platform
/
upstream
/
binutils.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
beb9aec
)
sim: avr: fix -Wimplicit-fallthrough warnings
author
Mike Frysinger
<vapier@gentoo.org>
Thu, 21 Dec 2023 06:28:52 +0000
(
01:28
-0500)
committer
Mike Frysinger
<vapier@gentoo.org>
Thu, 21 Dec 2023 06:59:22 +0000
(
01:59
-0500)
Replace some fall through comments with the attribute.
sim/avr/interp.c
patch
|
blob
|
history
diff --git
a/sim/avr/interp.c
b/sim/avr/interp.c
index
eef4ad9
..
377398e
100644
(file)
--- 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));