Skip to content

Commit bac32d1

Browse files
committed
sortbootorder,utils/rtc_clock_menu: allow fall through in switch case
Signed-off-by: Piotr Król <[email protected]>
1 parent e7e1153 commit bac32d1

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

sortbootorder.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -368,6 +368,7 @@ int main(void) {
368368
update_tags(bootlist, &max_lines);
369369
save_flash((u32)flash_address, bootlist,
370370
max_lines, spi_wp_toggle);
371+
__attribute__((fallthrough));
371372
// fall through to exit ...
372373
case 'x':
373374
case 'X':

utils/rtc_clock_menu.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,7 @@ void handle_rtc_clock_menu(void)
160160
break;
161161
case 'w':
162162
rtc_write_clock(&time);
163+
__attribute__((fallthrough));
163164
case 'x':
164165
end = TRUE;
165166
break;

0 commit comments

Comments
 (0)