public inbox for gdb-cvs@sourceware.org
help / color / mirror / Atom feed
* [binutils-gdb] sim: avr: fix -Wimplicit-fallthrough warnings
@ 2023-12-21 7:02 Michael Frysinger
0 siblings, 0 replies; only message in thread
From: Michael Frysinger @ 2023-12-21 7:02 UTC (permalink / raw)
To: gdb-cvs
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=639bab3ca6e91fe7affbe8c231bb2f7f159abf1c
commit 639bab3ca6e91fe7affbe8c231bb2f7f159abf1c
Author: Mike Frysinger <vapier@gentoo.org>
Date: Thu Dec 21 01:28:52 2023 -0500
sim: avr: fix -Wimplicit-fallthrough warnings
Replace some fall through comments with the attribute.
Diff:
---
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));
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-12-21 7:02 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-12-21 7:02 [binutils-gdb] sim: avr: fix -Wimplicit-fallthrough warnings Michael Frysinger
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).