From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:45226) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QRkyW-0000Y8-OI for qemu-devel@nongnu.org; Wed, 01 Jun 2011 08:56:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QRkyU-0000ac-AQ for qemu-devel@nongnu.org; Wed, 01 Jun 2011 08:56:40 -0400 Received: from mx1.redhat.com ([209.132.183.28]:64440) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QRkyT-0000aM-MU for qemu-devel@nongnu.org; Wed, 01 Jun 2011 08:56:38 -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 p51CuaaS010948 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Wed, 1 Jun 2011 08:56:36 -0400 From: Christophe Fergeau Date: Wed, 1 Jun 2011 14:56:30 +0200 Message-Id: <1306932992-30075-2-git-send-email-cfergeau@redhat.com> In-Reply-To: <1306932992-30075-1-git-send-email-cfergeau@redhat.com> References: <1306932992-30075-1-git-send-email-cfergeau@redhat.com> Subject: [Qemu-devel] [PATCH 1/3] lsi: Fix unused-but-set-variable warning List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Christophe Fergeau This warning is new in gcc 4.6. Signed-off-by: Christophe Fergeau --- hw/lsi53c895a.c | 2 -- 1 files changed, 0 insertions(+), 2 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) { -- 1.7.5.2