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.
pull/7807/head
Hasnain Virk 2018-08-16 17:01:28 +03:00
parent 3c25b96441
commit a7cb32f83f
1 changed files with 2 additions and 0 deletions

View File

@ -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) { }