Skip to content

Commit a23b7cf

Browse files
committed
nanostack-hal: eventloop: silence compiler warning for unused variable
Compiler reminded that a variable declaration was left behind when the code using it was put behind #ifdef. Add the missing #ifdef. Warning being fixed: ---8<---8<---- [Warning] ns_event_loop.c@44,0: #177-D: variable "event_thread_id" was declared but never referenced
1 parent b710f08 commit a23b7cf

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

features/FEATURE_COMMON_PAL/nanostack-hal-mbed-cmsis-rtos/ns_event_loop.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,10 @@ static const osThreadAttr_t event_thread_attr = {
4141
};
4242
#endif
4343

44+
#if !MBED_CONF_NANOSTACK_HAL_EVENT_LOOP_DISPATCH_FROM_APPLICATION
4445
static osThreadId_t event_thread_id;
46+
#endif
47+
4548
static mbed_rtos_storage_mutex_t event_mutex;
4649
static const osMutexAttr_t event_mutex_attr = {
4750
.name = "nanostack_event_mutex",

0 commit comments

Comments
 (0)