kernel: fix timer initializer field order
Recent changes to struct _timeout changed the declaration order to avoid alignment padding. While this has no effect to C99 code C++ requires that designated initializes appear in declaration order. Update the initializer macro so it can be used in C++ code. Signed-off-by: Peter Bigot <peter.bigot@nordicsemi.no>
This commit is contained in:
parent
869ca055c5
commit
e37c785356
1 changed files with 1 additions and 1 deletions
|
@ -1773,8 +1773,8 @@ struct k_timer {
|
|||
{ \
|
||||
.timeout = { \
|
||||
.node = {},\
|
||||
.fn = z_timer_expiration_handler, \
|
||||
.dticks = 0, \
|
||||
.fn = z_timer_expiration_handler \
|
||||
}, \
|
||||
.wait_q = Z_WAIT_Q_INIT(&obj.wait_q), \
|
||||
.expiry_fn = expiry, \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue