mirror of https://github.com/ARMmbed/mbed-os.git
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
parent
3c25b96441
commit
a7cb32f83f
|
@ -475,11 +475,13 @@ public:
|
||||||
{
|
{
|
||||||
osStatus status = _mutex.lock();
|
osStatus status = _mutex.lock();
|
||||||
MBED_ASSERT(status == osOK);
|
MBED_ASSERT(status == osOK);
|
||||||
|
(void) status;
|
||||||
}
|
}
|
||||||
void unlock(void)
|
void unlock(void)
|
||||||
{
|
{
|
||||||
osStatus status = _mutex.unlock();
|
osStatus status = _mutex.unlock();
|
||||||
MBED_ASSERT(status == osOK);
|
MBED_ASSERT(status == osOK);
|
||||||
|
(void) status;
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
void lock(void) { }
|
void lock(void) { }
|
||||||
|
|
Loading…
Reference in New Issue