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