mirror of
https://github.com/neovim/neovim.git
synced 2025-09-20 02:08:17 +00:00
vim-patch:8.0.1215: newer gcc warns for implicit fallthrough
Problem: Newer gcc warns for implicit fallthrough.
Solution: Consistently use a FALLTHROUGH comment. (Christian Brabandt)
2f40d129bf
This commit is contained in:
@@ -1867,7 +1867,7 @@ void do_pending_operator(cmdarg_T *cap, int old_col, bool gui_yank)
|
||||
} else {
|
||||
bangredo = true; // do_bang() will put cmd in redo buffer.
|
||||
}
|
||||
// fallthrough
|
||||
FALLTHROUGH;
|
||||
|
||||
case OP_INDENT:
|
||||
case OP_COLON:
|
||||
@@ -4480,7 +4480,7 @@ dozet:
|
||||
break;
|
||||
}
|
||||
undo = true;
|
||||
/*FALLTHROUGH*/
|
||||
FALLTHROUGH;
|
||||
|
||||
case 'g': /* "zg": add good word to word list */
|
||||
case 'w': /* "zw": add wrong word to word list */
|
||||
@@ -6907,7 +6907,7 @@ static void nv_g_cmd(cmdarg_T *cap)
|
||||
/* "g'm" and "g`m": jump to mark without setting pcmark */
|
||||
case '\'':
|
||||
cap->arg = true;
|
||||
/*FALLTHROUGH*/
|
||||
FALLTHROUGH;
|
||||
case '`':
|
||||
nv_gomark(cap);
|
||||
break;
|
||||
@@ -6965,7 +6965,7 @@ static void nv_g_cmd(cmdarg_T *cap)
|
||||
case 'q':
|
||||
case 'w':
|
||||
oap->cursor_start = curwin->w_cursor;
|
||||
/*FALLTHROUGH*/
|
||||
FALLTHROUGH;
|
||||
case '~':
|
||||
case 'u':
|
||||
case 'U':
|
||||
|
Reference in New Issue
Block a user