Skip to content

Commit 667c426

Browse files
committed
Fix unused variable warnings in x86_64 disassembler
1 parent 4786d22 commit 667c426

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

zjit/src/disasm_x86_64.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -639,7 +639,7 @@ impl<'a> DisassemblerX64<'a> {
639639
let (modd, _regop, rm) = self.get_modrm(modrm);
640640

641641
// For mod==3, use the direct_register_name; otherwise use cpu reg for addresses
642-
let reg_name_for = |me: &Self, r: usize, mod3: bool| -> &'static str {
642+
let reg_name_for = |_me: &Self, r: usize, mod3: bool| -> &'static str {
643643
if mod3 {
644644
match register_name_fn {
645645
1 => name_of_byte_cpu_register(r),
@@ -812,7 +812,7 @@ impl<'a> DisassemblerX64<'a> {
812812

813813
// -- F6/F7 instruction --
814814
fn f6f7_instruction(&mut self) -> usize {
815-
let opcode = self.read_u8();
815+
let _opcode = self.read_u8();
816816
let modrm = self.peek();
817817
let (modd, regop, rm) = self.get_modrm(modrm);
818818
static MNEMONICS: &[Option<&str>] = &[

0 commit comments

Comments
 (0)