Skip to content

Commit 79e695e

Browse files
authored
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.
1 parent d64a3ab commit 79e695e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

core/iwasm/compilation/aot_emit_function.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1407,7 +1407,9 @@ aot_compile_op_call(AOTCompContext *comp_ctx, AOTFuncContext *func_ctx,
14071407
LLVMValueRef *param_values = NULL, value_ret = NULL, func;
14081408
LLVMValueRef import_func_idx, res;
14091409
LLVMValueRef ext_ret, ext_ret_ptr, ext_ret_idx;
1410+
#if WASM_ENABLE_AOT_STACK_FRAME != 0
14101411
LLVMValueRef func_idx_ref;
1412+
#endif
14111413
int32 i, j = 0, param_count, result_count, ext_ret_count;
14121414
uint64 total_size;
14131415
uint8 wasm_ret_type;

0 commit comments

Comments
 (0)