Skip to content

Commit 6d01f67

Browse files
Charles E. Youseandrewboie
authored andcommitted
kernel/msg_q: reorder _K_MSGQ_INITIALIZER() initializers
This is a trivial change to satisfy C++, which requires that designated initializers appear in the same order as the members they initialize. Fixes: #14540 Signed-off-by: Charles E. Youse <[email protected]>
1 parent 27a56ad commit 6d01f67

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/kernel.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3173,8 +3173,8 @@ struct k_msgq {
31733173
#define _K_MSGQ_INITIALIZER(obj, q_buffer, q_msg_size, q_max_msgs) \
31743174
{ \
31753175
.wait_q = Z_WAIT_Q_INIT(&obj.wait_q), \
3176-
.max_msgs = q_max_msgs, \
31773176
.msg_size = q_msg_size, \
3177+
.max_msgs = q_max_msgs, \
31783178
.buffer_start = q_buffer, \
31793179
.buffer_end = q_buffer + (q_max_msgs * q_msg_size), \
31803180
.read_ptr = q_buffer, \

0 commit comments

Comments
 (0)