mirror of
https://github.com/neovim/neovim.git
synced 2025-09-16 08:18:17 +00:00
main: fix FALLTHROUGH hints (#8623)
GCC (Clang also?) does not recognize FALLTHROUGH comments when the case is wrapped in braces.
This commit is contained in:

committed by
Justin M. Keyes

parent
bf2460e2f9
commit
7f7802e643
@@ -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;
|
||||
|
Reference in New Issue
Block a user