mirror of
https://github.com/neovim/neovim.git
synced 2025-09-16 00:08:19 +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
|
case 'M': { // "-M" no changes or writing of files
|
||||||
reset_modifiable();
|
reset_modifiable();
|
||||||
// FALLTHROUGH
|
} // FALLTHROUGH
|
||||||
}
|
|
||||||
case 'm': { // "-m" no writing of files
|
case 'm': { // "-m" no writing of files
|
||||||
p_write = false;
|
p_write = false;
|
||||||
break;
|
break;
|
||||||
@@ -1018,8 +1017,7 @@ static void command_line_scan(mparm_T *parmp)
|
|||||||
argv_idx = -1;
|
argv_idx = -1;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
// FALLTHROUGH
|
} // FALLTHROUGH
|
||||||
}
|
|
||||||
case 'S': // "-S {file}" execute Vim script
|
case 'S': // "-S {file}" execute Vim script
|
||||||
case 'i': // "-i {shada}" use for ShaDa file
|
case 'i': // "-i {shada}" use for ShaDa file
|
||||||
case 'u': // "-u {vimrc}" vim inits file
|
case 'u': // "-u {vimrc}" vim inits file
|
||||||
@@ -1163,8 +1161,7 @@ scripterror:
|
|||||||
argv_idx = -1;
|
argv_idx = -1;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
// FALLTHROUGH
|
} // FALLTHROUGH
|
||||||
}
|
|
||||||
case 'W': { // "-W {scriptout}" overwrite script file
|
case 'W': { // "-W {scriptout}" overwrite script file
|
||||||
if (scriptout != NULL) {
|
if (scriptout != NULL) {
|
||||||
goto scripterror;
|
goto scripterror;
|
||||||
|
Reference in New Issue
Block a user