Skip to content

Commit

Permalink
JANITORIAL: Silence GCC 7 fallthrough warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
bonki committed Mar 23, 2018
1 parent 99c72c7 commit 0524ff6
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion engines/lastexpress/menu/menu.cpp
Expand Up @@ -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: {
Expand Down
6 changes: 4 additions & 2 deletions engines/sword25/util/lua/llex.cpp
Expand Up @@ -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);
Expand Down
6 changes: 2 additions & 4 deletions engines/sword25/util/lua/lstrlib.cpp
Expand Up @@ -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 "
Expand Down

0 comments on commit 0524ff6

Please sign in to comment.