Skip to content

Commit bb66123

Browse files
ceolinjhedberg
authored andcommitted
bt: controller/util: 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 69fb9d6 commit bb66123

File tree

1 file changed

+1
-1
lines changed
  • subsys/bluetooth/controller/util

1 file changed

+1
-1
lines changed

subsys/bluetooth/controller/util/dbuf.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ struct dbuf_hdr {
1818
/* Size in a bytes of a single element stored in double buffer. */
1919
uint8_t elem_size;
2020
/* Pointer for actual buffer memory. Its size should be 2 times @p elem_size. */
21-
uint8_t data[0];
21+
uint8_t data[];
2222
};
2323

2424
/**

0 commit comments

Comments
 (0)