core/iwasm/aot/aot_runtime.c: Fix an unused function warning (#1099)

This commit is contained in:
YAMAMOTO Takashi 2022-04-19 10:48:28 +09:00 committed by GitHub
parent b4574123c9
commit 87784cfb65
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2893,6 +2893,7 @@ aot_table_grow(AOTModuleInstance *module_inst, uint32 tbl_idx,
#endif /* WASM_ENABLE_REF_TYPES != 0 */
#if (WASM_ENABLE_DUMP_CALL_STACK != 0) || (WASM_ENABLE_PERF_PROFILING != 0)
#if WASM_ENABLE_CUSTOM_NAME_SECTION != 0
static const char *
lookup_func_name(const char **func_names, uint32 *func_indexes,
uint32 func_index_count, uint32 func_index)
@ -2913,6 +2914,7 @@ lookup_func_name(const char **func_names, uint32 *func_indexes,
return NULL;
}
#endif /* WASM_ENABLE_CUSTOM_NAME_SECTION != 0 */
static const char *
get_func_name_from_index(const AOTModuleInstance *module_inst,