From patchwork Wed Jun 8 08:28:06 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hans de Goede X-Patchwork-Id: 99384 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 A4DE7B6FE3 for ; Wed, 8 Jun 2011 19:06:44 +1000 (EST) Received: from localhost ([::1]:56756 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QUEim-0000AW-FE for incoming@patchwork.ozlabs.org; Wed, 08 Jun 2011 05:06:40 -0400 Received: from eggs.gnu.org ([140.186.70.92]:34683) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QUE77-0000IS-3v for qemu-devel@nongnu.org; Wed, 08 Jun 2011 04:27:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QUE75-0008Gw-OS for qemu-devel@nongnu.org; Wed, 08 Jun 2011 04:27:45 -0400 Received: from mx1.redhat.com ([209.132.183.28]:8207) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QUE75-0008GQ-2x for qemu-devel@nongnu.org; Wed, 08 Jun 2011 04:27:43 -0400 Received: from int-mx12.intmail.prod.int.phx2.redhat.com (int-mx12.intmail.prod.int.phx2.redhat.com [10.5.11.25]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p588Rehf009578 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Wed, 8 Jun 2011 04:27:40 -0400 Received: from shalem.localdomain.com (vpn1-5-158.ams2.redhat.com [10.36.5.158]) by int-mx12.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id p588Rdb0027683; Wed, 8 Jun 2011 04:27:39 -0400 From: Hans de Goede To: qemu-devel@nongnu.org Date: Wed, 8 Jun 2011 10:28:06 +0200 Message-Id: <1307521686-22833-1-git-send-email-hdegoede@redhat.com> X-Scanned-By: MIMEDefang 2.68 on 10.5.11.25 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.132.183.28 Cc: Hans de Goede Subject: [Qemu-devel] [PATCH] Fix a number of unused-but-set-variable warnings (new with gcc-4.6) 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 --- hw/lsi53c895a.c | 2 -- target-i386/kvm.c | 4 ++-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/hw/lsi53c895a.c b/hw/lsi53c895a.c index 83084b6..90c6cbc 100644 --- a/hw/lsi53c895a.c +++ b/hw/lsi53c895a.c @@ -889,7 +889,6 @@ static void lsi_do_msgout(LSIState *s) uint8_t msg; int len; uint32_t current_tag; - SCSIDevice *current_dev; lsi_request *current_req, *p, *p_next; int id; @@ -901,7 +900,6 @@ static void lsi_do_msgout(LSIState *s) current_req = lsi_find_by_tag(s, current_tag); } id = (current_tag >> 8) & 0xf; - current_dev = s->bus.devs[id]; DPRINTF("MSG out len=%d\n", s->dbc); while (s->dbc) { diff --git a/target-i386/kvm.c b/target-i386/kvm.c index faedc6c..6f003b0 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,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;