[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH-v3 2/2] kvm: Fix unused-but-set-variable warning
From: |
Christophe Fergeau |
Subject: |
[Qemu-devel] [PATCH-v3 2/2] kvm: Fix unused-but-set-variable warning |
Date: |
Tue, 31 May 2011 09:53:49 +0200 |
Based on a patch from Hans de Goede <address@hidden>
This warning is new in gcc 4.6.
Acked-by: Amit Shah <address@hidden>
Signed-off-by: Christophe Fergeau <address@hidden>
---
target-i386/kvm.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/target-i386/kvm.c b/target-i386/kvm.c
index faedc6c..58a70bc 100644
--- a/target-i386/kvm.c
+++ b/target-i386/kvm.c
@@ -970,7 +970,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);
@@ -986,7 +986,6 @@ 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);
env->fpstt = (swd >> 11) & 7;
env->fpus = swd;
env->fpuc = cwd;
--
1.7.5.2
- Re: [Qemu-devel] [PATCH] Fix a number of unused-but-set-variable warnings (new with gcc-4.6), (continued)
- 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
- [Qemu-devel] [PATCH-v3 1/2] tcg: Fix unused-but-set-variable warning, Christophe Fergeau, 2011/05/31
- [Qemu-devel] [PATCH-v3 2/2] kvm: Fix unused-but-set-variable warning,
Christophe Fergeau <=