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:
John Dallahan
2018-06-22 08:49:54 +00:00
committed by Justin M. Keyes
parent bf2460e2f9
commit 7f7802e643

View File

@@ -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;