Skip to content

Commit 8e6499f

Browse files
authoredJul 19, 2024
gcc compiler warning fixes (#1977)
* fix for enum-int-mismatch * fix for unused-variable
1 parent 1ed4c43 commit 8e6499f

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed
 

‎qemu/include/tcg/tcg-apple-jit.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -94,14 +94,14 @@ static inline void jit_write_protect(int enabled)
9494

9595
#define JIT_CALLBACK_GUARD(x) \
9696
{ \
97-
(void*)uc; \
97+
(void)uc; \
9898
x; \
9999
} \
100100

101101

102102
#define JIT_CALLBACK_GUARD_VAR(var, x) \
103103
{ \
104-
(void*)uc; \
104+
(void)uc; \
105105
var = x; \
106106
} \
107107

‎qemu/target/ppc/excp_helper.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1064,7 +1064,7 @@ void helper_store_msr(CPUPPCState *env, target_ulong val)
10641064
#if defined(_MSC_VER) && defined(__clang__)
10651065
void helper_pminsn(CPUPPCState *env, uint32_t insn)
10661066
#else
1067-
void helper_pminsn(CPUPPCState *env, powerpc_pm_insn_t insn)
1067+
void helper_pminsn(CPUPPCState *env, uint32_t /*powerpc_pm_insn_t*/ insn)
10681068
#endif
10691069
{
10701070
CPUState *cs;

‎uc.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -65,11 +65,11 @@ static void restore_jit_state(uc_engine *uc)
6565
#else
6666
static void save_jit_state(uc_engine *uc)
6767
{
68-
(void *)uc;
68+
(void)uc;
6969
}
7070
static void restore_jit_state(uc_engine *uc)
7171
{
72-
(void *)uc;
72+
(void)uc;
7373
}
7474
#endif
7575

0 commit comments

Comments
 (0)