From patchwork Thu Apr 7 03:02:02 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Gibson X-Patchwork-Id: 90120 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 05BD0B6F1E for ; Thu, 7 Apr 2011 13:08:19 +1000 (EST) Received: from localhost ([127.0.0.1]:42333 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q7fZw-0004mD-CF for incoming@patchwork.ozlabs.org; Wed, 06 Apr 2011 23:08:16 -0400 Received: from [140.186.70.92] (port=40294 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q7fUg-00029l-1B for qemu-devel@nongnu.org; Wed, 06 Apr 2011 23:02:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q7fUb-0008Bu-MH for qemu-devel@nongnu.org; Wed, 06 Apr 2011 23:02:50 -0400 Received: from ozlabs.org ([203.10.76.45]:59490) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q7fUb-0008BA-3d for qemu-devel@nongnu.org; Wed, 06 Apr 2011 23:02:45 -0400 Received: by ozlabs.org (Postfix, from userid 1007) id 3B498B6F73; Thu, 7 Apr 2011 13:02:40 +1000 (EST) From: David Gibson To: qemu-devel@nongnu.org Date: Thu, 7 Apr 2011 13:02:02 +1000 Message-Id: <1302145325-4634-3-git-send-email-david@gibson.dropbear.id.au> X-Mailer: git-send-email 1.7.1 In-Reply-To: <1302145325-4634-1-git-send-email-david@gibson.dropbear.id.au> References: <1302145325-4634-1-git-send-email-david@gibson.dropbear.id.au> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 203.10.76.45 Cc: aik@ozlabs.ru Subject: [Qemu-devel] [PATCH 2/5] spapr_llan: Fix warning when compiled with -dDEBUG X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org From: Alexey Kardashevskiy Compiling with the DEBUG macro causes leaves hw/spapr_llan.c with an unused variable, which is treated as an error in the qemu build. Signed-off-by: Alexey Kardashevskiy Signed-off-by: David Gibson --- hw/spapr_llan.c | 3 --- 1 files changed, 0 insertions(+), 3 deletions(-) diff --git a/hw/spapr_llan.c b/hw/spapr_llan.c index 1d83fd5..ff3a78f 100644 --- a/hw/spapr_llan.c +++ b/hw/spapr_llan.c @@ -274,9 +274,6 @@ static target_ulong h_register_logical_lan(CPUState *env, VIOsPAPRDevice *sdev = spapr_vio_find_by_reg(spapr->vio_bus, reg); VIOsPAPRVLANDevice *dev = (VIOsPAPRVLANDevice *)sdev; vlan_bd_t filter_list_bd; -#ifdef DEBUG - target_ulong mac_address = args[4]; -#endif if (!dev) { return H_PARAMETER;