From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:49768) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QRJm9-0006Kp-BS for qemu-devel@nongnu.org; Tue, 31 May 2011 03:54:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QRJm2-0000hi-6g for qemu-devel@nongnu.org; Tue, 31 May 2011 03:54:05 -0400 Received: from mx1.redhat.com ([209.132.183.28]:26404) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QRJm1-0000hV-Ud for qemu-devel@nongnu.org; Tue, 31 May 2011 03:53:58 -0400 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p4V7rvQs014638 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Tue, 31 May 2011 03:53:57 -0400 Received: from localhost.localdomain (ovpn-113-95.phx2.redhat.com [10.3.113.95]) by int-mx02.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id p4V7rofC003130 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Tue, 31 May 2011 03:53:56 -0400 From: Christophe Fergeau Date: Tue, 31 May 2011 09:53:49 +0200 Message-Id: <1306828429-9139-3-git-send-email-cfergeau@redhat.com> In-Reply-To: <1306828429-9139-1-git-send-email-cfergeau@redhat.com> References: <20110531054345.GA17412@amit-x200.redhat.com> <1306828429-9139-1-git-send-email-cfergeau@redhat.com> Subject: [Qemu-devel] [PATCH-v3 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 Based on a patch from Hans de Goede This warning is new in gcc 4.6. Acked-by: Amit Shah Signed-off-by: Christophe Fergeau --- 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