Skip to content

Commit d5abbcb

Browse files
Hasnain VirkCruz Monrreal II
authored andcommitted
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.
1 parent f5ec83c commit d5abbcb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

features/lorawan/lorastack/mac/LoRaMac.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -474,11 +474,13 @@ class LoRaMac {
474474
{
475475
osStatus status = _mutex.lock();
476476
MBED_ASSERT(status == osOK);
477+
(void) status;
477478
}
478479
void unlock(void)
479480
{
480481
osStatus status = _mutex.unlock();
481482
MBED_ASSERT(status == osOK);
483+
(void) status;
482484
}
483485
#else
484486
void lock(void) { }

0 commit comments

Comments
 (0)