Skip to content

Commit 39cf9bd

Browse files
ceolinfabiobaltieri
authored andcommitted
net: ip: Use proper flexible array
0 length array is a GNU extension. Use proper C99 flexible array. Signed-off-by: Flavio Ceolin <[email protected]>
1 parent 1ccf939 commit 39cf9bd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

subsys/net/ip/nbr.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ struct net_nbr {
6868
/** Start of the data storage. Not to be accessed directly
6969
* (the data pointer should be used instead).
7070
*/
71-
uint8_t __nbr[0] __net_nbr_align;
71+
uint8_t __nbr[] __net_nbr_align;
7272
};
7373

7474
/* This is an array of struct net_nbr + some additional data */

0 commit comments

Comments
 (0)