JANITORIAL: Silence GCC 7 fallthrough warnings

This commit is contained in:
Adrian Frühwirth 2018-03-23 18:34:17 +01:00
parent 99c72c7b5c
commit 0524ff6e8d
3 changed files with 7 additions and 7 deletions

View File

@ -434,7 +434,7 @@ bool Menu::handleEvent(StartMenuAction action, Common::EventType type) {
case kMenuCase4:
if (clicked)
_index = 0;
// fall down to kMenuContinue
// fall through
//////////////////////////////////////////////////////////////////////////
case kMenuContinue: {

View File

@ -377,8 +377,10 @@ static int llex (LexState *ls, SemInfo *seminfo) {
read_long_string(ls, seminfo, sep);
return TK_STRING;
}
else if (sep == -1) return '[';
else luaX_lexerror(ls, "invalid long string delimiter", TK_STRING);
else if (sep == -1)
return '[';
luaX_lexerror(ls, "invalid long string delimiter", TK_STRING);
break;
}
case '=': {
next(ls);

View File

@ -799,10 +799,8 @@ static int str_format (lua_State *L) {
luaL_addvalue(&b);
continue; /* skip the `addsize' at the end */
}
else {
sprintf(buff, form, s);
break;
}
sprintf(buff, form, s);
break;
}
default: { /* also treat cases `pnLlh' */
return luaL_error(L, "invalid option " LUA_QL("%%%c") " to "