summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Wu <XrXr@users.noreply.github.com>2025-10-11 15:32:26 -0400
committerAlan Wu <XrXr@users.noreply.github.com>2025-10-12 00:51:59 -0400
commit32b98d71e6f381fb78316ed663c579886a1eaaad (patch)
treea84ad25f9d7cab6670ae85a4068a48506b70311e
parenta6f92ddd12805b12dc3e7e418ebc7189b6b6f95c (diff)
YJIT: Fix unused warning from `cargo test`
-rw-r--r--yjit/src/stats.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/yjit/src/stats.rs b/yjit/src/stats.rs
index b63e1c3272..a53d23435b 100644
--- a/yjit/src/stats.rs
+++ b/yjit/src/stats.rs
@@ -917,6 +917,7 @@ pub extern "C" fn rb_yjit_record_exit_stack(exit_pc: *const VALUE)
// rb_vm_insn_addr2opcode won't work in cargo test --all-features
// because it's a C function. Without insn call, this function is useless
// so wrap the whole thing in a not test check.
+ let _ = exit_pc;
#[cfg(not(test))]
{
// Get the opcode from the encoded insn handler at this PC