Skip to content

Commit eaaa2e1

Browse files
ceolinfabiobaltieri
authored andcommitted
log: multidomain: Use proper flexible array
0 length array is a GNU extension. Use proper flexible array. Signed-off-by: Flavio Ceolin <[email protected]>
1 parent 805701d commit eaaa2e1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

include/zephyr/logging/log_multidomain_helper.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070

7171
/** @brief Content of the logging message. */
7272
struct log_multidomain_log_msg {
73-
uint8_t data[0];
73+
FLEXIBLE_ARRAY_DECLARE(uint8_t, data);
7474
} __packed;
7575

7676
/** @brief Content of the domain count message. */
@@ -87,14 +87,14 @@ struct log_multidomain_source_cnt {
8787
/** @brief Content of the domain name message. */
8888
struct log_multidomain_domain_name {
8989
uint8_t domain_id;
90-
char name[0];
90+
char name[];
9191
} __packed;
9292

9393
/** @brief Content of the source name message. */
9494
struct log_multidomain_source_name {
9595
uint8_t domain_id;
9696
uint16_t source_id;
97-
char name[0];
97+
char name[];
9898
} __packed;
9999

100100
/** @brief Content of the message for getting logging levels. */

0 commit comments

Comments
 (0)