fix some compiler warnings

This commit is contained in:
Nguyen Anh Quynh 2024-04-22 20:03:07 +08:00
parent ef34d92b2f
commit c136b6b2bf
2 changed files with 2 additions and 4 deletions

View File

@ -967,6 +967,6 @@ uint32_t HELPER(uc_hooksys64)(CPUARMState *env, uint32_t insn, void *hk)
} }
uint32_t ret; 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; return ret;
} }

View File

@ -1535,7 +1535,6 @@ static void test_fxsave_fpip_x86(void)
// fxsave stores FPIP at an 8-byte offset, move FPIP to eax register // fxsave stores FPIP at an 8-byte offset, move FPIP to eax register
0x8b, 0x44, 0x24, 0x08 // movl 0x8(%esp), %eax 0x8b, 0x44, 0x24, 0x08 // movl 0x8(%esp), %eax
}; };
uc_err err;
uint32_t X86_NOP_OFFSET = 4; uint32_t X86_NOP_OFFSET = 4;
uint32_t stack_top = (uint32_t)MEM_STACK; uint32_t stack_top = (uint32_t)MEM_STACK;
uint32_t value; uint32_t value;
@ -1572,7 +1571,6 @@ static void test_fxsave_fpip_x64(void)
0x48, 0x8b, 0x44, 0x24, 0x08, // movq 0x8(%rsp), %rax 0x48, 0x8b, 0x44, 0x24, 0x08, // movq 0x8(%rsp), %rax
}; };
uc_err err;
uint64_t stack_top = (uint64_t)MEM_STACK; uint64_t stack_top = (uint64_t)MEM_STACK;
uint64_t X64_NOP_OFFSET = 8; uint64_t X64_NOP_OFFSET = 8;
uint64_t value; uint64_t value;