1
0
Fork 0
forked from len0rd/rockbox

misc: Properly annotate some intentional case fallthroughs

Change-Id: Ie758f17fefac72aca1aa28a8ba1126b9334fe134
This commit is contained in:
Solomon Peachy 2025-04-22 20:45:45 -04:00
parent 83950bf233
commit 5b1158e64a
9 changed files with 13 additions and 9 deletions

View file

@ -367,6 +367,7 @@ static int llex (LexState *ls, SemInfo *seminfo) {
}
else if (sep == -1) return '[';
else luaX_lexerror(ls, "invalid long string delimiter", TK_STRING);
break; /* to avoid warnings */
}
case '=': {
next(ls);
@ -460,4 +461,3 @@ void luaX_lookahead (LexState *ls) {
lua_assert(ls->lookahead.token == TK_EOS);
ls->lookahead.token = llex(ls, &ls->lookahead.seminfo);
}