diff options
author | John Dallahan <mission712@windowslive.com> | 2018-06-22 08:49:54 +0000 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2018-06-22 10:49:54 +0200 |
commit | 7f7802e64368323fa01ce80b6f6968a3aa54795d (patch) | |
tree | 5cc17bfa563ebcd4e602def68396a009d128d4e8 | |
parent | bf2460e2f980697be54090bdaa6b1bdc618b3791 (diff) | |
download | rneovim-7f7802e64368323fa01ce80b6f6968a3aa54795d.tar.gz rneovim-7f7802e64368323fa01ce80b6f6968a3aa54795d.tar.bz2 rneovim-7f7802e64368323fa01ce80b6f6968a3aa54795d.zip |
main: fix FALLTHROUGH hints (#8623)
GCC (Clang also?) does not recognize FALLTHROUGH comments when the
case is wrapped in braces.
-rw-r--r-- | src/nvim/main.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/nvim/main.c b/src/nvim/main.c index ac740eb1f1..6b382ae320 100644 --- a/src/nvim/main.c +++ b/src/nvim/main.c @@ -902,8 +902,7 @@ static void command_line_scan(mparm_T *parmp) } case 'M': { // "-M" no changes or writing of files reset_modifiable(); - // FALLTHROUGH - } + } // FALLTHROUGH case 'm': { // "-m" no writing of files p_write = false; break; @@ -1018,8 +1017,7 @@ static void command_line_scan(mparm_T *parmp) argv_idx = -1; break; } - // FALLTHROUGH - } + } // FALLTHROUGH case 'S': // "-S {file}" execute Vim script case 'i': // "-i {shada}" use for ShaDa file case 'u': // "-u {vimrc}" vim inits file @@ -1163,8 +1161,7 @@ scripterror: argv_idx = -1; break; } - // FALLTHROUGH - } + } // FALLTHROUGH case 'W': { // "-W {scriptout}" overwrite script file if (scriptout != NULL) { goto scripterror; |