From 87784cfb65c5744c09810b6d3efb81adf9607407 Mon Sep 17 00:00:00 2001 From: YAMAMOTO Takashi Date: Tue, 19 Apr 2022 10:48:28 +0900 Subject: [PATCH] core/iwasm/aot/aot_runtime.c: Fix an unused function warning (#1099) --- core/iwasm/aot/aot_runtime.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/iwasm/aot/aot_runtime.c b/core/iwasm/aot/aot_runtime.c index 13e276fbf..a4a0bb4f4 100644 --- a/core/iwasm/aot/aot_runtime.c +++ b/core/iwasm/aot/aot_runtime.c @@ -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,