Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

YJIT: Fix a warning on cargo test #7909

Merged
merged 1 commit into from
Jun 5, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions yjit/src/stats.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down Expand Up @@ -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;
Expand Down