Fix issues reported by Coverity static analysis (#1974)

This commit is contained in:
Wenyong Huang
2023-02-22 11:10:21 +08:00
committed by GitHub
parent bb5629811f
commit 0fa0813a5a
5 changed files with 21 additions and 7 deletions

View File

@ -1657,8 +1657,6 @@ wasm_val_to_rt_val(WASMModuleInstanceCommon *inst_comm_rt, uint8 val_type_rt,
ret =
wasm_externref_obj2ref(inst_comm_rt, v->of.ref, (uint32 *)data);
break;
#else
(void)inst_comm_rt;
#endif
default:
LOG_WARNING("unexpected value type %d", val_type_rt);
@ -1666,6 +1664,7 @@ wasm_val_to_rt_val(WASMModuleInstanceCommon *inst_comm_rt, uint8 val_type_rt,
break;
}
(void)inst_comm_rt;
return ret;
}