From patchwork Wed Jun 1 12:56:30 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christophe Fergeau X-Patchwork-Id: 98182 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [140.186.70.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 205A9B6F7F for ; Wed, 1 Jun 2011 23:06:53 +1000 (EST) Received: from localhost ([::1]:33901 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QRl8L-0002Dq-LY for incoming@patchwork.ozlabs.org; Wed, 01 Jun 2011 09:06:49 -0400 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 Received: from localhost.localdomain (ovpn-113-86.phx2.redhat.com [10.3.113.86]) by int-mx02.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id p51CuXXG031284 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 1 Jun 2011 08:56:36 -0400 From: Christophe Fergeau To: qemu-devel@nongnu.org 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> X-Scanned-By: MIMEDefang 2.67 on 10.5.11.12 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.132.183.28 Cc: Christophe Fergeau Subject: [Qemu-devel] [PATCH 1/3] lsi: Fix unused-but-set-variable warning X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org This warning is new in gcc 4.6. Signed-off-by: Christophe Fergeau Acked-by: Paolo Bonzini Reviewed-by: Peter Maydell --- 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) {