1
0
mirror of https://github.com/lua/lua synced 2026-06-08 15:34:49 +00:00

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