Patchwork [2/5] spapr_llan: Fix warning when compiled with -dDEBUG

login
register
mail settings
Submitter David Gibson
Date April 7, 2011, 3:02 a.m.
Message ID <1302145325-4634-3-git-send-email-david@gibson.dropbear.id.au>
Download mbox | patch
Permalink /patch/90120/
State New
Headers show

Comments

David Gibson - April 7, 2011, 3:02 a.m.
From: Alexey Kardashevskiy <aik@ozlabs.ru>

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 <aik@ozlabs.ru>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
---
 hw/spapr_llan.c |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)

Patch

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;