Skip to content

Commit cc19036

Browse files
authored
fix: Remove unused variables in SIMD_v128_const case (#4197)
Fix compiler warnings about unused variables `high` and `low` in the `SIMD_v128_const` case. These variables are only needed inside the `WASM_ENABLE_FAST_INTERP != 0` conditional block, but were incorrectly declared outside of it, causing unused variable warnings. Signed-off-by: Huang Qi <[email protected]>
1 parent 751cdcf commit cc19036

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
@@ -15624,7 +15624,9 @@ wasm_loader_prepare_bytecode(WASMModule *module, WASMFunction *func,
1562415624
/* basic operation */
1562515625
case SIMD_v128_const:
1562615626
{
15627+
#if WASM_ENABLE_FAST_INTERP != 0
1562715628
uint64 high, low;
15629+
#endif
1562815630
CHECK_BUF1(p, p_end, 16);
1562915631
#if WASM_ENABLE_FAST_INTERP != 0
1563015632
wasm_runtime_read_v128(p, &high, &low);

0 commit comments

Comments
 (0)