From 79e695e1a3566caa38fe25e86bd242b8c6691455 Mon Sep 17 00:00:00 2001 From: Anders Bakken Date: Tue, 17 Sep 2024 18:37:57 -0700 Subject: [PATCH] Fix a compile warning in aot_emit_function.c (#3793) This just fixes an unused variable warning when WASM_ENABLE_AOT_STACK_FRAME is != 0. --- core/iwasm/compilation/aot_emit_function.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/iwasm/compilation/aot_emit_function.c b/core/iwasm/compilation/aot_emit_function.c index 11129ac9..85a9239a 100644 --- a/core/iwasm/compilation/aot_emit_function.c +++ b/core/iwasm/compilation/aot_emit_function.c @@ -1407,7 +1407,9 @@ aot_compile_op_call(AOTCompContext *comp_ctx, AOTFuncContext *func_ctx, LLVMValueRef *param_values = NULL, value_ret = NULL, func; LLVMValueRef import_func_idx, res; LLVMValueRef ext_ret, ext_ret_ptr, ext_ret_idx; +#if WASM_ENABLE_AOT_STACK_FRAME != 0 LLVMValueRef func_idx_ref; +#endif int32 i, j = 0, param_count, result_count, ext_ret_count; uint64 total_size; uint8 wasm_ret_type;