mirror of
https://github.com/lua/lua.git
synced 2026-06-08 08:03: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:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user