mirror of
https://github.com/lua/lua
synced 2026-09-27 00:28:25 +03: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:
parent
36c1f6d949
commit
53b41d0cdd
1 changed files with 1 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue