sim: rl78: fix -Wimplicit-fallthrough warnings
authorMike Frysinger <vapier@gentoo.org>
Thu, 21 Dec 2023 06:35:57 +0000 (01:35 -0500)
committerMike Frysinger <vapier@gentoo.org>
Thu, 21 Dec 2023 06:59:23 +0000 (01:59 -0500)
Seems like this code was meant to fallthru.

sim/rl78/rl78.c

index 8f11c09..447f56f 100644 (file)
@@ -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 ();