]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
sim: or1k: fix -Wimplicit-fallthrough warnings
authorMike Frysinger <vapier@gentoo.org>
Thu, 21 Dec 2023 06:35:14 +0000 (01:35 -0500)
committerMike Frysinger <vapier@gentoo.org>
Thu, 21 Dec 2023 06:59:23 +0000 (01:59 -0500)
Replace some fall through comments with the attribute.

sim/or1k/or1k.c

index 73ddeac87ade87c541eb889e3b7e20ec4dfe5707..b32e9b1e64014a9c85e2c56739cd9232d726911a 100644 (file)
@@ -270,7 +270,7 @@ or1k32bf_nop (sim_cpu *current_cpu, USI uimm16)
 
     case NOP_EXIT:
       sim_io_printf (CPU_STATE (current_cpu), "exit(%d)\n", GET_H_GPR (3));
-      /* fall through */
+      ATTRIBUTE_FALLTHROUGH;
     case NOP_EXIT_SILENT:
       sim_engine_halt (sd, current_cpu, NULL, CPU_PC_GET (current_cpu),
                       sim_exited, GET_H_GPR (3));