From 3083e3f47cc0d2918bd15edbe2335b2bc969feac Mon Sep 17 00:00:00 2001 From: coypu Date: Sat, 17 Sep 2016 08:54:35 +0300 Subject: [PATCH 24/27] even with new HALDEBUG, gcc complains that o_sync_cause is unused, when it's used in HALDEBUG case. just __unused it, then. --- sys/external/isc/atheros_hal/dist/ar5416/ar5416_interrupts.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/external/isc/atheros_hal/dist/ar5416/ar5416_interrupts.c b/sys/external/isc/atheros_hal/dist/ar5416/ar5416_interrupts.c index 32ce2ed..0de4818 100644 --- a/sys/external/isc/atheros_hal/dist/ar5416/ar5416_interrupts.c +++ b/sys/external/isc/atheros_hal/dist/ar5416/ar5416_interrupts.c @@ -67,7 +67,8 @@ ar5416IsInterruptPending(struct ath_hal *ah) HAL_BOOL ar5416GetPendingInterrupts(struct ath_hal *ah, HAL_INT *masked) { - uint32_t isr, isr0, isr1, sync_cause = 0, o_sync_cause = 0; + uint32_t isr, isr0, isr1, sync_cause = 0; + uint32_t __unused o_sync_cause = 0; HAL_CAPABILITIES *pCap = &AH_PRIVATE(ah)->ah_caps; #ifdef AH_INTERRUPT_DEBUGGING -- 2.9.3