Skip to content

Commit 32b98d7

Browse files
committed
YJIT: Fix unused warning from cargo test
1 parent a6f92dd commit 32b98d7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

yjit/src/stats.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -917,6 +917,7 @@ pub extern "C" fn rb_yjit_record_exit_stack(exit_pc: *const VALUE)
917917
// rb_vm_insn_addr2opcode won't work in cargo test --all-features
918918
// because it's a C function. Without insn call, this function is useless
919919
// so wrap the whole thing in a not test check.
920+
let _ = exit_pc;
920921
#[cfg(not(test))]
921922
{
922923
// Get the opcode from the encoded insn handler at this PC

0 commit comments

Comments
 (0)