From efe86cebb4c66c19b7aa0383e205a2eeec43a540 Mon Sep 17 00:00:00 2001 From: tema5002 Date: Tue, 9 Jun 2026 21:04:02 +0300 Subject: [PATCH] surpass the non void function not having return compiler warning --- src/compiler.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/compiler.c b/src/compiler.c index ca400de..102c7c9 100644 --- a/src/compiler.c +++ b/src/compiler.c @@ -119,6 +119,7 @@ static noomV_Opcode noomC_what_bop_is_this(const noomP_Parser *parser, noom_uint if (noom_startswith(parser->code + offset, "^")) return NOOMV_INSTR_POW; if (noom_startswith(parser->code + offset, "<")) return NOOMV_INSTR_LT; if (noom_startswith(parser->code + offset, ">")) return NOOMV_INSTR_GT; + return 0; } // mmap ahh function 🥀🥀🥀🥀🥀🥀🥀 @@ -366,4 +367,5 @@ noom_Exit noomC_compile(noom_LuaVM *vm, const noomP_Parser *parser, const noomP_ } vm->mainThread->stack[vm->mainThread->stacklen++] = (noomV_Value){.tag = NOOMV_VOBJ, .autoclose = 0, .isptr = 0, .obj = (noomV_Object*)program}; + return NOOM_OK }