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:
Jan Edmund Lazo
2018-09-20 06:32:15 -04:00
parent 47d74bf32f
commit 6a329b0548
11 changed files with 32 additions and 30 deletions

View File

@@ -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':