Skip to content

Commit

Permalink
fix some compiler warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
aquynh committed Apr 22, 2024
1 parent ef34d92 commit c136b6b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 2 additions & 2 deletions qemu/target/arm/op_helper.c
Original file line number Diff line number Diff line change
Expand Up @@ -967,6 +967,6 @@ uint32_t HELPER(uc_hooksys64)(CPUARMState *env, uint32_t insn, void *hk)
}

uint32_t ret;
JIT_CALLBACK_GUARD_VAR(ret, ((uc_cb_insn_sys_t)(hook->callback))(env->uc, uc_rt, &cp_reg, hook->user_data));
JIT_CALLBACK_GUARD_VAR(ret, ((uc_cb_insn_sys_t)(hook->callback))(uc, uc_rt, &cp_reg, hook->user_data));
return ret;
}
}
2 changes: 0 additions & 2 deletions tests/unit/test_x86.c
Original file line number Diff line number Diff line change
Expand Up @@ -1535,7 +1535,6 @@ static void test_fxsave_fpip_x86(void)
// fxsave stores FPIP at an 8-byte offset, move FPIP to eax register
0x8b, 0x44, 0x24, 0x08 // movl 0x8(%esp), %eax
};
uc_err err;
uint32_t X86_NOP_OFFSET = 4;
uint32_t stack_top = (uint32_t)MEM_STACK;
uint32_t value;
Expand Down Expand Up @@ -1572,7 +1571,6 @@ static void test_fxsave_fpip_x64(void)
0x48, 0x8b, 0x44, 0x24, 0x08, // movq 0x8(%rsp), %rax
};

uc_err err;
uint64_t stack_top = (uint64_t)MEM_STACK;
uint64_t X64_NOP_OFFSET = 8;
uint64_t value;
Expand Down

0 comments on commit c136b6b

Please sign in to comment.