From 6d01f67f8a9d1be969e97c22b6c4b112aaa022d5 Mon Sep 17 00:00:00 2001 From: "Charles E. Youse" Date: Mon, 18 Mar 2019 10:27:34 -0700 Subject: [PATCH] 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 --- include/kernel.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/kernel.h b/include/kernel.h index ac3a3f05714..c698e552692 100644 --- a/include/kernel.h +++ b/include/kernel.h @@ -3173,8 +3173,8 @@ struct k_msgq { #define _K_MSGQ_INITIALIZER(obj, q_buffer, q_msg_size, q_max_msgs) \ { \ .wait_q = Z_WAIT_Q_INIT(&obj.wait_q), \ - .max_msgs = q_max_msgs, \ .msg_size = q_msg_size, \ + .max_msgs = q_max_msgs, \ .buffer_start = q_buffer, \ .buffer_end = q_buffer + (q_max_msgs * q_msg_size), \ .read_ptr = q_buffer, \