From: Alexey Kardashevskiy Date: Thu, 7 Apr 2011 03:02:02 +0000 (+1000) Subject: spapr_llan: Fix warning when compiled with -dDEBUG X-Git-Tag: v0.15.0-rc0~538 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=fa227023f044552ec48ca851411dba2f268a912c;p=thirdparty%2Fqemu.git spapr_llan: Fix warning when compiled with -dDEBUG 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 Signed-off-by: Stefan Hajnoczi --- diff --git a/hw/spapr_llan.c b/hw/spapr_llan.c index 1d83fd58fd6..ff3a78f729c 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;