sys/event: fix of compilation problems
Unstructured static initializer like { 0 } lead to compilation errors on ESP8266, MSP430 and MIPS. Error messages are:
error: (near initialization for 'queue.event_list') [-Werror=missing-braces]
error: (near initialization for 'queue.waiter') [-Werror=missing-field-initializers]
This change fixes the compilation problem.
This commit is contained in:
parent
96d2fd05a4
commit
f604d3dec8
@ -121,7 +121,7 @@ extern "C" {
|
||||
/**
|
||||
* @brief static initializer for detached event queues
|
||||
*/
|
||||
#define EVENT_QUEUE_INIT_DETACHED { 0 }
|
||||
#define EVENT_QUEUE_INIT_DETACHED { .waiter = NULL }
|
||||
|
||||
/**
|
||||
* @brief event structure forward declaration
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user