mirror of
https://github.com/bytecodealliance/wasm-micro-runtime.git
synced 2024-11-26 15:32:05 +00:00
Fix unused warnings on disable_bounds_checks (#2347)
This commit is contained in:
parent
6a310cc88a
commit
228a3bed53
|
@ -1176,12 +1176,15 @@ wasm_interp_call_func_bytecode(WASMModuleInstance *module,
|
||||||
uint8 local_type, *global_addr;
|
uint8 local_type, *global_addr;
|
||||||
uint32 cache_index, type_index, param_cell_num, cell_num;
|
uint32 cache_index, type_index, param_cell_num, cell_num;
|
||||||
uint8 value_type;
|
uint8 value_type;
|
||||||
|
#if !defined(OS_ENABLE_HW_BOUND_CHECK) \
|
||||||
|
|| WASM_CPU_SUPPORTS_UNALIGNED_ADDR_ACCESS == 0
|
||||||
#if WASM_CONFIGUABLE_BOUNDS_CHECKS != 0
|
#if WASM_CONFIGUABLE_BOUNDS_CHECKS != 0
|
||||||
bool disable_bounds_checks = !wasm_runtime_is_bounds_checks_enabled(
|
bool disable_bounds_checks = !wasm_runtime_is_bounds_checks_enabled(
|
||||||
(WASMModuleInstanceCommon *)module);
|
(WASMModuleInstanceCommon *)module);
|
||||||
#else
|
#else
|
||||||
bool disable_bounds_checks = false;
|
bool disable_bounds_checks = false;
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
#if WASM_ENABLE_DEBUG_INTERP != 0
|
#if WASM_ENABLE_DEBUG_INTERP != 0
|
||||||
uint8 *frame_ip_orig = NULL;
|
uint8 *frame_ip_orig = NULL;
|
||||||
|
|
|
@ -1200,12 +1200,15 @@ wasm_interp_call_func_bytecode(WASMModuleInstance *module,
|
||||||
uint8 *maddr = NULL;
|
uint8 *maddr = NULL;
|
||||||
uint32 local_idx, local_offset, global_idx;
|
uint32 local_idx, local_offset, global_idx;
|
||||||
uint8 opcode, local_type, *global_addr;
|
uint8 opcode, local_type, *global_addr;
|
||||||
|
#if !defined(OS_ENABLE_HW_BOUND_CHECK) \
|
||||||
|
|| WASM_CPU_SUPPORTS_UNALIGNED_ADDR_ACCESS == 0
|
||||||
#if WASM_CONFIGUABLE_BOUNDS_CHECKS != 0
|
#if WASM_CONFIGUABLE_BOUNDS_CHECKS != 0
|
||||||
bool disable_bounds_checks = !wasm_runtime_is_bounds_checks_enabled(
|
bool disable_bounds_checks = !wasm_runtime_is_bounds_checks_enabled(
|
||||||
(WASMModuleInstanceCommon *)module);
|
(WASMModuleInstanceCommon *)module);
|
||||||
#else
|
#else
|
||||||
bool disable_bounds_checks = false;
|
bool disable_bounds_checks = false;
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
#if WASM_ENABLE_LABELS_AS_VALUES != 0
|
#if WASM_ENABLE_LABELS_AS_VALUES != 0
|
||||||
#define HANDLE_OPCODE(op) &&HANDLE_##op
|
#define HANDLE_OPCODE(op) &&HANDLE_##op
|
||||||
|
|
Loading…
Reference in New Issue
Block a user