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 From: Hans de Goede Date: Wed, 8 Jun 2011 10:28:06 +0200 Message-Id: <1307521686-22833-1-git-send-email-hdegoede@redhat.com> Subject: [Qemu-devel] [PATCH] Fix a number of unused-but-set-variable warnings (new with gcc-4.6) List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Hans de Goede --- 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; -- 1.7.5.1