From a7cb32f83f4f022b312a472bf516b8a9eb4b97da Mon Sep 17 00:00:00 2001 From: Hasnain Virk Date: Thu, 16 Aug 2018 17:01:28 +0300 Subject: [PATCH] unused variable warning in LoRaMac.h for release build In release builds where MBED_ASSERT macro is syphoned off, we were hitting an unused variable warning. To mitigate that we could direct the variable used in MBED_ASSERT to void. --- features/lorawan/lorastack/mac/LoRaMac.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/features/lorawan/lorastack/mac/LoRaMac.h b/features/lorawan/lorastack/mac/LoRaMac.h index 783175a284..9f1837e283 100644 --- a/features/lorawan/lorastack/mac/LoRaMac.h +++ b/features/lorawan/lorastack/mac/LoRaMac.h @@ -475,11 +475,13 @@ public: { osStatus status = _mutex.lock(); MBED_ASSERT(status == osOK); + (void) status; } void unlock(void) { osStatus status = _mutex.unlock(); MBED_ASSERT(status == osOK); + (void) status; } #else void lock(void) { }