From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:52037) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QRwHg-0003xu-El for qemu-devel@nongnu.org; Wed, 01 Jun 2011 21:01:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QRmHN-00084Q-W0 for qemu-devel@nongnu.org; Wed, 01 Jun 2011 10:20:19 -0400 Received: from lo.gmane.org ([80.91.229.12]:56279) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QRmHN-00083t-9p for qemu-devel@nongnu.org; Wed, 01 Jun 2011 10:20:13 -0400 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1QRmHK-0005SW-VR for qemu-devel@nongnu.org; Wed, 01 Jun 2011 16:20:11 +0200 Received: from 93-34-184-88.ip51.fastwebnet.it ([93.34.184.88]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 01 Jun 2011 16:20:10 +0200 Received: from pbonzini by 93-34-184-88.ip51.fastwebnet.it with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 01 Jun 2011 16:20:10 +0200 From: Paolo Bonzini Date: Wed, 01 Jun 2011 16:19:51 +0200 Message-ID: References: <1306932992-30075-1-git-send-email-cfergeau@redhat.com> <1306932992-30075-2-git-send-email-cfergeau@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit In-Reply-To: <1306932992-30075-2-git-send-email-cfergeau@redhat.com> Subject: Re: [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 On 06/01/2011 02:56 PM, Christophe Fergeau wrote: > 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) { Acked-by: Paolo Bonzini