Clear compilation warning and dead code (#3002)

This commit is contained in:
Wenyong Huang
2024-01-13 08:56:39 +08:00
committed by GitHub
parent 63012f0222
commit 23d2e0627c
2 changed files with 6 additions and 9 deletions

View File

@ -4046,15 +4046,6 @@ check_wasi_abi_compatibility(const WASMModule *module,
* according to the assumption, they should be all wasi compatiable
*/
/* always can not have both at the same time */
if (start && initialize) {
set_error_buf(
error_buf, error_buf_size,
"neither a command nor a reactor can both have _start function "
"and _initialize function at the same time");
return false;
}
#if WASM_ENABLE_MULTI_MODULE != 0
/* filter out commands (with `_start`) cases */
if (start && !main_module) {