From 98015819e20457678398a1b8c88080aa305d73b1 Mon Sep 17 00:00:00 2001
From: Andreas Mohr <and@gmx.li>
Date: Thu, 4 Jan 2018 07:21:37 +0000
Subject: [PATCH] (edit.c): Cleanup implicit-fallthrough warnings
Found by GCC 7.2.0
Signed-off-by: Andreas Mohr <and@gmx.li>
---
src/editor/edit.c | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/src/editor/edit.c b/src/editor/edit.c
index b584400f2..3167fc5e9 100644
a
|
b
|
edit_execute_cmd (WEdit * edit, long command, int char_for_insertion) |
3456 | 3456 | case CK_MarkColumnDown: |
3457 | 3457 | if (edit->mark2 == -1) |
3458 | 3458 | break; /*marking is following the cursor: may need to highlight a whole line */ |
| 3459 | MC_FALLTHROUGH; |
3459 | 3460 | case CK_Left: |
3460 | 3461 | case CK_Right: |
3461 | 3462 | case CK_MarkLeft: |
… |
… |
edit_execute_cmd (WEdit * edit, long command, int char_for_insertion) |
3551 | 3552 | |
3552 | 3553 | case CK_MarkColumnPageUp: |
3553 | 3554 | edit->column_highlight = 1; |
| 3555 | MC_FALLTHROUGH; |
3554 | 3556 | case CK_PageUp: |
3555 | 3557 | case CK_MarkPageUp: |
3556 | 3558 | edit_move_up (edit, w->lines - 1, TRUE); |
3557 | 3559 | break; |
3558 | 3560 | case CK_MarkColumnPageDown: |
3559 | 3561 | edit->column_highlight = 1; |
| 3562 | MC_FALLTHROUGH; |
3560 | 3563 | case CK_PageDown: |
3561 | 3564 | case CK_MarkPageDown: |
3562 | 3565 | edit_move_down (edit, w->lines - 1, TRUE); |
3563 | 3566 | break; |
3564 | 3567 | case CK_MarkColumnLeft: |
3565 | 3568 | edit->column_highlight = 1; |
| 3569 | MC_FALLTHROUGH; |
3566 | 3570 | case CK_Left: |
3567 | 3571 | case CK_MarkLeft: |
3568 | 3572 | if (option_fake_half_tabs && is_in_indent (&edit->buffer) && right_of_four_spaces (edit)) |
… |
… |
edit_execute_cmd (WEdit * edit, long command, int char_for_insertion) |
3578 | 3582 | break; |
3579 | 3583 | case CK_MarkColumnRight: |
3580 | 3584 | edit->column_highlight = 1; |
| 3585 | MC_FALLTHROUGH; |
3581 | 3586 | case CK_Right: |
3582 | 3587 | case CK_MarkRight: |
3583 | 3588 | if (option_fake_half_tabs && is_in_indent (&edit->buffer) && left_of_four_spaces (edit)) |
… |
… |
edit_execute_cmd (WEdit * edit, long command, int char_for_insertion) |
3608 | 3613 | break; |
3609 | 3614 | case CK_MarkColumnUp: |
3610 | 3615 | edit->column_highlight = 1; |
| 3616 | MC_FALLTHROUGH; |
3611 | 3617 | case CK_Up: |
3612 | 3618 | case CK_MarkUp: |
3613 | 3619 | edit_move_up (edit, 1, FALSE); |
3614 | 3620 | break; |
3615 | 3621 | case CK_MarkColumnDown: |
3616 | 3622 | edit->column_highlight = 1; |
| 3623 | MC_FALLTHROUGH; |
3617 | 3624 | case CK_Down: |
3618 | 3625 | case CK_MarkDown: |
3619 | 3626 | edit_move_down (edit, 1, FALSE); |
3620 | 3627 | break; |
3621 | 3628 | case CK_MarkColumnParagraphUp: |
3622 | 3629 | edit->column_highlight = 1; |
| 3630 | MC_FALLTHROUGH; |
3623 | 3631 | case CK_ParagraphUp: |
3624 | 3632 | case CK_MarkParagraphUp: |
3625 | 3633 | edit_move_up_paragraph (edit, FALSE); |
3626 | 3634 | break; |
3627 | 3635 | case CK_MarkColumnParagraphDown: |
3628 | 3636 | edit->column_highlight = 1; |
| 3637 | MC_FALLTHROUGH; |
3629 | 3638 | case CK_ParagraphDown: |
3630 | 3639 | case CK_MarkParagraphDown: |
3631 | 3640 | edit_move_down_paragraph (edit, FALSE); |
3632 | 3641 | break; |
3633 | 3642 | case CK_MarkColumnScrollUp: |
3634 | 3643 | edit->column_highlight = 1; |
| 3644 | MC_FALLTHROUGH; |
3635 | 3645 | case CK_ScrollUp: |
3636 | 3646 | case CK_MarkScrollUp: |
3637 | 3647 | edit_move_up (edit, 1, TRUE); |
3638 | 3648 | break; |
3639 | 3649 | case CK_MarkColumnScrollDown: |
3640 | 3650 | edit->column_highlight = 1; |
| 3651 | MC_FALLTHROUGH; |
3641 | 3652 | case CK_ScrollDown: |
3642 | 3653 | case CK_MarkScrollDown: |
3643 | 3654 | edit_move_down (edit, 1, TRUE); |