[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH] Fix a number of unused-but-set-variable warnings (n
From: |
Hans de Goede |
Subject: |
[Qemu-devel] [PATCH] Fix a number of unused-but-set-variable warnings (new with gcc-4.6) |
Date: |
Tue, 3 May 2011 13:03:40 +0200 |
---
target-i386/kvm.c | 4 ++--
tcg/tcg.c | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/target-i386/kvm.c b/target-i386/kvm.c
index a13599d..e9e8d54 100644
--- a/target-i386/kvm.c
+++ b/target-i386/kvm.c
@@ -950,7 +950,7 @@ static int kvm_get_xsave(CPUState *env)
#ifdef KVM_CAP_XSAVE
struct kvm_xsave* xsave;
int ret, i;
- uint16_t cwd, swd, twd, fop;
+ uint16_t cwd, swd, twd;
if (!kvm_has_xsave()) {
return kvm_get_fpu(env);
@@ -966,7 +966,7 @@ static int kvm_get_xsave(CPUState *env)
cwd = (uint16_t)xsave->region[0];
swd = (uint16_t)(xsave->region[0] >> 16);
twd = (uint16_t)xsave->region[1];
- fop = (uint16_t)(xsave->region[1] >> 16);
+ /* fop = (uint16_t)(xsave->region[1] >> 16); */
env->fpstt = (swd >> 11) & 7;
env->fpus = swd;
env->fpuc = cwd;
diff --git a/tcg/tcg.c b/tcg/tcg.c
index 8748c05..11a8daf 100644
--- a/tcg/tcg.c
+++ b/tcg/tcg.c
@@ -585,7 +585,7 @@ void tcg_register_helper(void *func, const char *name)
void tcg_gen_callN(TCGContext *s, TCGv_ptr func, unsigned int flags,
int sizemask, TCGArg ret, int nargs, TCGArg *args)
{
-#ifdef TCG_TARGET_I386
+#if defined TCG_TARGET_I386 && TCG_TARGET_REG_BITS < 64
int call_type;
#endif
int i;
@@ -612,7 +612,7 @@ void tcg_gen_callN(TCGContext *s, TCGv_ptr func, unsigned
int flags,
*gen_opc_ptr++ = INDEX_op_call;
nparam = gen_opparam_ptr++;
-#ifdef TCG_TARGET_I386
+#if defined TCG_TARGET_I386 && TCG_TARGET_REG_BITS < 64
call_type = (flags & TCG_CALL_TYPE_MASK);
#endif
if (ret != TCG_CALL_DUMMY_ARG) {
--
1.7.5
- [Qemu-devel] [PATCH] Fix a number of unused-but-set-variable warnings (new with gcc-4.6),
Hans de Goede <=
- Re: [Qemu-devel] [PATCH] Fix a number of unused-but-set-variable warnings (new with gcc-4.6), Christophe Fergeau, 2011/05/17
- Re: [Qemu-devel] [PATCH] Fix a number of unused-but-set-variable warnings (new with gcc-4.6), Amit Shah, 2011/05/27
- [Qemu-devel] [PATCH 0/2] Fix unused-but-set-variable warnings, Christophe Fergeau, 2011/05/30
- [Qemu-devel] [PATCH 1/2] tcg: Fix unused-but-set-variable warning, Christophe Fergeau, 2011/05/30
- [Qemu-devel] [PATCH 2/2] kvm: Fix unused-but-set-variable warning, Christophe Fergeau, 2011/05/30
- Re: [Qemu-devel] [PATCH 0/2] Fix unused-but-set-variable warnings, Amit Shah, 2011/05/30
- Re: [Qemu-devel] [PATCH 0/2] Fix unused-but-set-variable warnings, Christophe Fergeau, 2011/05/30
- Re: [Qemu-devel] [PATCH 0/2] Fix unused-but-set-variable warnings, Amit Shah, 2011/05/31
- [Qemu-devel] [PATCH-v3 0/2] Fix unused-but-set-variable warnings, Christophe Fergeau, 2011/05/31