From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:33474) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QFQ0a-0007A4-08 for qemu-devel@nongnu.org; Thu, 28 Apr 2011 08:07:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QFQ0Z-0003KH-79 for qemu-devel@nongnu.org; Thu, 28 Apr 2011 08:07:47 -0400 Received: from mail-wy0-f173.google.com ([74.125.82.173]:41485) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QFQ0Z-0003K8-1W for qemu-devel@nongnu.org; Thu, 28 Apr 2011 08:07:47 -0400 Received: by wyb42 with SMTP id 42so2346273wyb.4 for ; Thu, 28 Apr 2011 05:07:46 -0700 (PDT) Sender: Paolo Bonzini Message-ID: <4DB95891.5010300@redhat.com> Date: Thu, 28 Apr 2011 14:07:45 +0200 From: Paolo Bonzini MIME-Version: 1.0 References: <1303978031-24366-1-git-send-email-alevy@redhat.com> In-Reply-To: <1303978031-24366-1-git-send-email-alevy@redhat.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH] ide/atapi: fix set but unused List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Alon Levy Cc: qemu-devel@nongnu.org On 04/28/2011 10:07 AM, Alon Levy wrote: > Signed-off-by: Alon Levy > --- > hw/ide/atapi.c | 4 +++- > 1 files changed, 3 insertions(+), 1 deletions(-) > > diff --git a/hw/ide/atapi.c b/hw/ide/atapi.c > index 690a0ab..81fa01b 100644 > --- a/hw/ide/atapi.c > +++ b/hw/ide/atapi.c > @@ -1080,12 +1080,14 @@ static const struct { > > void ide_atapi_cmd(IDEState *s) > { > +#ifdef DEBUG_IDE_ATAPI > const uint8_t *packet; > +#endif > uint8_t *buf; > > - packet = s->io_buffer; > buf = s->io_buffer; > #ifdef DEBUG_IDE_ATAPI > + packet = s->io_buffer; > { > int i; > printf("ATAPI limit=0x%x packet:", s->lcyl | (s->hcyl<< 8)); ACK ... but why don't we allow interspersing declarations and statements? There are already so many C99 and GCC extensions in use in QEMU. Paolo