From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:38824) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QFMFp-0007vB-RI for qemu-devel@nongnu.org; Thu, 28 Apr 2011 04:07:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QFMFp-0000Xd-0K for qemu-devel@nongnu.org; Thu, 28 Apr 2011 04:07:17 -0400 Received: from mx1.redhat.com ([209.132.183.28]:34792) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QFMFo-0000XL-Lj for qemu-devel@nongnu.org; Thu, 28 Apr 2011 04:07:16 -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 p3S87Eee032745 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Thu, 28 Apr 2011 04:07:14 -0400 Received: from playa.tlv.redhat.com (dhcp-3-110.tlv.redhat.com [10.35.3.110]) by int-mx12.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id p3S87C01019061 for ; Thu, 28 Apr 2011 04:07:13 -0400 From: Alon Levy Date: Thu, 28 Apr 2011 11:07:11 +0300 Message-Id: <1303978031-24366-1-git-send-email-alevy@redhat.com> Subject: [Qemu-devel] [PATCH] ide/atapi: fix set but unused List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org 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)); -- 1.7.4.4