0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

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)
This commit is contained in:
Bram Moolenaar
2017-10-24 21:49:36 +02:00
parent 4f1982800f
commit 2f40d129bf
14 changed files with 39 additions and 29 deletions

View File

@@ -670,7 +670,8 @@ emsg(char_u *s)
ex_exitval = 1;
/* Reset msg_silent, an error causes messages to be switched back on. */
/* Reset msg_silent, an error causes messages to be switched back on.
*/
msg_silent = 0;
cmd_silent = FALSE;
@@ -2837,7 +2838,7 @@ do_more_prompt(int typed_char)
skip_redraw = TRUE; /* skip redraw once */
need_wait_return = FALSE; /* don't wait in main() */
}
/*FALLTHROUGH*/
/* FALLTHROUGH */
case 'q': /* quit */
case Ctrl_C:
case ESC: