public inbox for gdb-cvs@sourceware.org
help / color / mirror / Atom feed
* [binutils-gdb] sim: rl78: 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=e8aaac5fe648cff36f197bafd66c7f38475aae43

commit e8aaac5fe648cff36f197bafd66c7f38475aae43
Author: Mike Frysinger <vapier@gentoo.org>
Date:   Thu Dec 21 01:35:57 2023 -0500

    sim: rl78: fix -Wimplicit-fallthrough warnings
    
    Seems like this code was meant to fallthru.

Diff:
---
 sim/rl78/rl78.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/sim/rl78/rl78.c b/sim/rl78/rl78.c
index 8f11c09d87d..447f56fe02f 100644
--- a/sim/rl78/rl78.c
+++ b/sim/rl78/rl78.c
@@ -499,6 +499,7 @@ decode_opcode (void)
 	CLOCKS (3); /* note: adds two clocks, total 5 clocks */
       else
 	CLOCKS (2); /* note: adds one clock, total 4 clocks */
+      ATTRIBUTE_FALLTHROUGH;
     case RLO_branch:
       tprintf ("BRANCH: ");
       v = GPC ();

^ 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: rl78: 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).