summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTakashi Kokubun <takashikkbn@gmail.com>2023-06-05 14:58:04 -0700
committerGitHub <noreply@github.com>2023-06-05 14:58:04 -0700
commitebe1077330b36bfa960fd94392e26fdfbaa93951 (patch)
tree1fc913ef3864166e177bd221cd2a55113abfab2d
parent2e14a65309a695cb5f5161ab64fe144c1aaae664 (diff)
YJIT: Fix a warning on cargo test (#7909)
Notes
Notes: Merged-By: k0kubun <takashikkbn@gmail.com>
-rw-r--r--yjit/src/stats.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/yjit/src/stats.rs b/yjit/src/stats.rs
index 00197effe6..91ecc8209b 100644
--- a/yjit/src/stats.rs
+++ b/yjit/src/stats.rs
@@ -612,7 +612,7 @@ fn get_live_context_count() -> usize {
/// and line samples. Their length should be the same, however the data stored in
/// them is different.
#[no_mangle]
-pub extern "C" fn rb_yjit_record_exit_stack(exit_pc: *const VALUE)
+pub extern "C" fn rb_yjit_record_exit_stack(_exit_pc: *const VALUE)
{
// Return if YJIT is not enabled
if !yjit_enabled_p() {
@@ -644,7 +644,7 @@ pub extern "C" fn rb_yjit_record_exit_stack(exit_pc: *const VALUE)
#[cfg(not(test))]
{
// Get the opcode from the encoded insn handler at this PC
- let insn = unsafe { rb_vm_insn_addr2opcode((*exit_pc).as_ptr()) };
+ let insn = unsafe { rb_vm_insn_addr2opcode((*_exit_pc).as_ptr()) };
// Use the same buffer size as Stackprof.
const BUFF_LEN: usize = 2048;