Update document and clear compile warnings (#1701)

Update build wasm app document, add how to set buildflags for Rust
project to reduce the footprint.

Clear Windows warnings and a shadow warning in aot_emit_numberic.c
This commit is contained in:
Wenyong Huang
2022-11-15 15:02:23 +08:00
committed by GitHub
parent 375a2c9a49
commit 6c16ff7654
3 changed files with 45 additions and 9 deletions

View File

@ -1963,8 +1963,8 @@ wasm_module_new(wasm_store_t *store, const wasm_byte_vec_t *binary)
destroy_lock:
os_mutex_destroy(&module_ex->lock);
remove_last:
bh_vector_remove((Vector *)store->modules, store->modules->num_elems - 1,
NULL);
bh_vector_remove((Vector *)store->modules,
(uint32)(store->modules->num_elems - 1), NULL);
unload:
wasm_runtime_unload(module_ex->module_comm_rt);
free_vec:
@ -2560,7 +2560,7 @@ wasm_module_share(wasm_module_t *module)
void
wasm_shared_module_delete(own wasm_shared_module_t *shared_module)
{
return wasm_module_delete_internal((wasm_module_t *)shared_module);
wasm_module_delete_internal((wasm_module_t *)shared_module);
}
static wasm_func_t *