diff --git a/lparser.c b/lparser.c index 1850d6dc..af2b64d1 100644 --- a/lparser.c +++ b/lparser.c @@ -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);