fix compiler warnings

gccjit-ravi534
Dibyendu Majumdar 6 years ago
parent 1218256e91
commit bb5ec933cf

@ -862,6 +862,7 @@ static void emit_comparison(struct function *fn, int A, int B, int C, int j,
switch (opCode) {
case OP_RAVI_LT_II: oper = "<"; goto Lemitint;
case OP_RAVI_LE_II: oper = "<=";
/* no break */
case OP_RAVI_EQ_II:
Lemitint:
if (ISK(B) && ISK(C)) {
@ -891,6 +892,7 @@ static void emit_comparison(struct function *fn, int A, int B, int C, int j,
break;
case OP_RAVI_LT_FF: oper = "<"; goto Lemitflt;
case OP_RAVI_LE_FF: oper = "<=";
/* no break */
case OP_RAVI_EQ_FF:
Lemitflt:
if (ISK(B) && ISK(C)) {
@ -2011,4 +2013,4 @@ bool raviJ_codegen(struct lua_State *L, struct Proto *p,
membuff_add_string(buf, fn.body.buf);
cleanup(&fn);
return true;
}
}

@ -153,7 +153,6 @@ static int do_asmvm_test(const char *code, int nparams, struct MyValue *params,
fprintf(stderr, "Script did not return a function\n");
goto Lerror;
}
int fpos = lua_gettop(L);
for (int i = 0; i < nparams; i++) {
switch (params[i].type) {
case RAVI_TNUMINT:

Loading…
Cancel
Save