gcc compiler warning fixes (#1977)
* fix for enum-int-mismatch * fix for unused-variable
This commit is contained in:
parent
1ed4c43ff3
commit
8e6499fb0b
@ -94,14 +94,14 @@ static inline void jit_write_protect(int enabled)
|
||||
|
||||
#define JIT_CALLBACK_GUARD(x) \
|
||||
{ \
|
||||
(void*)uc; \
|
||||
(void)uc; \
|
||||
x; \
|
||||
} \
|
||||
|
||||
|
||||
#define JIT_CALLBACK_GUARD_VAR(var, x) \
|
||||
{ \
|
||||
(void*)uc; \
|
||||
(void)uc; \
|
||||
var = x; \
|
||||
} \
|
||||
|
||||
|
@ -1064,7 +1064,7 @@ void helper_store_msr(CPUPPCState *env, target_ulong val)
|
||||
#if defined(_MSC_VER) && defined(__clang__)
|
||||
void helper_pminsn(CPUPPCState *env, uint32_t insn)
|
||||
#else
|
||||
void helper_pminsn(CPUPPCState *env, powerpc_pm_insn_t insn)
|
||||
void helper_pminsn(CPUPPCState *env, uint32_t /*powerpc_pm_insn_t*/ insn)
|
||||
#endif
|
||||
{
|
||||
CPUState *cs;
|
||||
|
Loading…
Reference in New Issue
Block a user