From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:39988) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QQziB-00084A-LX for qemu-devel@nongnu.org; Mon, 30 May 2011 06:28:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QQziA-0005Qq-Pp for qemu-devel@nongnu.org; Mon, 30 May 2011 06:28:39 -0400 Received: from mx1.redhat.com ([209.132.183.28]:62832) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QQziA-0005QX-Hl for qemu-devel@nongnu.org; Mon, 30 May 2011 06:28:38 -0400 From: Christophe Fergeau Date: Mon, 30 May 2011 12:28:03 +0200 Message-Id: <1306751283-31537-3-git-send-email-cfergeau@redhat.com> In-Reply-To: <1306751283-31537-1-git-send-email-cfergeau@redhat.com> References: <20110527103458.GA30093@amit-x200.redhat.com> <1306751283-31537-1-git-send-email-cfergeau@redhat.com> Subject: [Qemu-devel] [PATCH 2/2] kvm: Fix unused-but-set-variable warning List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Amit Shah , Hans de Goede , Christophe Fergeau , Aurelien Jarno Based on a patch from Hans de Goede This warning is new in gcc 4.6. Acked-by: Amit Shah --- 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