Skip to content

Commit 2e57fb1

Browse files
jacobly0adriweb
authored andcommitted
Fix fallthrough warnings.
1 parent c2600e9 commit 2e57fb1

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

core/debug/debug.c

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,12 @@
44
#include "../atomics.h"
55
#include "../mem.h"
66
#include "../emu.h"
7+
78
#include "../cpu.h"
9+
#include "../defines.h"
10+
#include "../emu.h"
811
#include "../flash.h"
12+
#include "../mem.h"
913
#include "../vat.h"
1014

1115
#include <stdio.h>
@@ -189,7 +193,7 @@ void debug_step(int mode, uint32_t addr) {
189193
break;
190194
case DBG_STEP_OUT:
191195
debug.step = debug.stepOver = false;
192-
/* fallthrough */
196+
fallthrough;
193197
case DBG_RUN_OUT:
194198
gui_debug_close();
195199
debug.stepOut = debug.stackIndex;
@@ -199,7 +203,7 @@ void debug_step(int mode, uint32_t addr) {
199203
case DBG_STEP_NEXT:
200204
case DBG_RUN_UNTIL:
201205
gui_debug_close();
202-
/* fallthrough */
206+
fallthrough;
203207
case DBG_RUN_IN:
204208
case DBG_RUN_OVER:
205209
case DBG_RUN_OUT:

0 commit comments

Comments
 (0)