From 53b41d0cddd80bf33fdc631bdd32e3ba53842b89 Mon Sep 17 00:00:00 2001 From: Roberto I Date: Fri, 8 May 2026 15:01:59 -0300 Subject: [PATCH] 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). --- lparser.c | 1 + 1 file changed, 1 insertion(+) 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);