Avoid warning in some compilers

In function 'funcargs', some compilers can complain that 'args' can be
used unitialized, due to the default case (syntax error).
This commit is contained in:
Roberto I
2026-05-08 15:01:59 -03:00
parent 36c1f6d949
commit 53b41d0cdd

View File

@@ -1166,6 +1166,7 @@ static void funcargs (LexState *ls, expdesc *f) {
} }
default: { default: {
luaX_syntaxerror(ls, "function arguments expected"); luaX_syntaxerror(ls, "function arguments expected");
return; /* to avoid warnings */
} }
} }
lua_assert(f->k == VNONRELOC); lua_assert(f->k == VNONRELOC);