surpass the non void function not having return compiler warning

This commit is contained in:
2026-06-09 21:04:02 +03:00
parent ee989fafa3
commit efe86cebb4

View File

@@ -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_POW;
if (noom_startswith(parser->code + offset, "<")) return NOOMV_INSTR_LT; if (noom_startswith(parser->code + offset, "<")) return NOOMV_INSTR_LT;
if (noom_startswith(parser->code + offset, ">")) return NOOMV_INSTR_GT; if (noom_startswith(parser->code + offset, ">")) return NOOMV_INSTR_GT;
return 0;
} }
// mmap ahh function 🥀🥀🥀🥀🥀🥀🥀 // 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++] = vm->mainThread->stack[vm->mainThread->stacklen++] =
(noomV_Value){.tag = NOOMV_VOBJ, .autoclose = 0, .isptr = 0, .obj = (noomV_Object*)program}; (noomV_Value){.tag = NOOMV_VOBJ, .autoclose = 0, .isptr = 0, .obj = (noomV_Object*)program};
return NOOM_OK
} }