Skip to content

Commit 02ad2e7

Browse files
committed
wasm_loader.c: Declare variable frame_ref_before_pop only if used
This avoids -Wunused-variable warning. Signed-off-by: Martin Jäger <martin@libre.solar>
1 parent dd0fee2 commit 02ad2e7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

core/iwasm/interpreter/wasm_loader.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12178,7 +12178,9 @@ wasm_loader_prepare_bytecode(WASMModule *module, WASMFunction *func,
1217812178
}
1217912179
#endif
1218012180

12181+
#if WASM_ENABLE_FAST_INTERP != 0
1218112182
uint8 *frame_ref_before_pop = loader_ctx->frame_ref;
12183+
#endif
1218212184
POP_TYPE(
1218312185
wasm_type->types[wasm_type->param_count - i - 1]);
1218412186
#if WASM_ENABLE_FAST_INTERP != 0

0 commit comments

Comments
 (0)