Skip to content

Commit c136b6b

Browse files
committed
fix some compiler warnings
1 parent ef34d92 commit c136b6b

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

qemu/target/arm/op_helper.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -967,6 +967,6 @@ uint32_t HELPER(uc_hooksys64)(CPUARMState *env, uint32_t insn, void *hk)
967967
}
968968

969969
uint32_t ret;
970-
JIT_CALLBACK_GUARD_VAR(ret, ((uc_cb_insn_sys_t)(hook->callback))(env->uc, uc_rt, &cp_reg, hook->user_data));
970+
JIT_CALLBACK_GUARD_VAR(ret, ((uc_cb_insn_sys_t)(hook->callback))(uc, uc_rt, &cp_reg, hook->user_data));
971971
return ret;
972-
}
972+
}

tests/unit/test_x86.c

-2
Original file line numberDiff line numberDiff line change
@@ -1535,7 +1535,6 @@ static void test_fxsave_fpip_x86(void)
15351535
// fxsave stores FPIP at an 8-byte offset, move FPIP to eax register
15361536
0x8b, 0x44, 0x24, 0x08 // movl 0x8(%esp), %eax
15371537
};
1538-
uc_err err;
15391538
uint32_t X86_NOP_OFFSET = 4;
15401539
uint32_t stack_top = (uint32_t)MEM_STACK;
15411540
uint32_t value;
@@ -1572,7 +1571,6 @@ static void test_fxsave_fpip_x64(void)
15721571
0x48, 0x8b, 0x44, 0x24, 0x08, // movq 0x8(%rsp), %rax
15731572
};
15741573

1575-
uc_err err;
15761574
uint64_t stack_top = (uint64_t)MEM_STACK;
15771575
uint64_t X64_NOP_OFFSET = 8;
15781576
uint64_t value;

0 commit comments

Comments
 (0)