From patchwork Tue May 31 07:53:49 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christophe Fergeau X-Patchwork-Id: 97969 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [140.186.70.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 569C0B6F71 for ; Tue, 31 May 2011 17:54:20 +1000 (EST) Received: from localhost ([::1]:59230 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QRJmL-0006LF-Mi for incoming@patchwork.ozlabs.org; Tue, 31 May 2011 03:54:17 -0400 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 To: qemu-devel@nongnu.org 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> X-Scanned-By: MIMEDefang 2.67 on 10.5.11.12 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.132.183.28 Subject: [Qemu-devel] [PATCH-v3 2/2] kvm: Fix unused-but-set-variable warning X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@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;