gcc compiler warning fixes (#1977)

* fix for enum-int-mismatch

* fix for unused-variable
This commit is contained in:
BitMaskMixer 2024-07-19 05:09:57 +02:00 committed by GitHub
parent 1ed4c43ff3
commit 8e6499fb0b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 5 additions and 5 deletions

View File

@ -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; \
} \

View File

@ -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;

4
uc.c
View File

@ -65,11 +65,11 @@ static void restore_jit_state(uc_engine *uc)
#else
static void save_jit_state(uc_engine *uc)
{
(void *)uc;
(void)uc;
}
static void restore_jit_state(uc_engine *uc)
{
(void *)uc;
(void)uc;
}
#endif