Mercurial > vim
diff src/message.c @ 12674:e769c912fcd9 v8.0.1215
patch 8.0.1215: newer gcc warns for implicit fallthrough
commit https://github.com/vim/vim/commit/2f40d129bf45cd35976e4120336ae6d504f5a5dd
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Oct 24 21:49:36 2017 +0200
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)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Tue, 24 Oct 2017 22:00:06 +0200 |
parents | ab0d827151a1 |
children | 351cf7c67bbe |
line wrap: on
line diff
--- a/src/message.c +++ b/src/message.c @@ -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: