Skip to content

Commit 69fb9d6

Browse files
ceolinjhedberg
authored andcommitted
lib: heap: 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 6f0e9ca commit 69fb9d6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/heap/heap.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ struct z_heap {
7474
size_t allocated_bytes;
7575
size_t max_allocated_bytes;
7676
#endif
77-
struct z_heap_bucket buckets[0];
77+
struct z_heap_bucket buckets[];
7878
};
7979

8080
static inline bool big_heap_chunks(chunksz_t chunks)

0 commit comments

Comments
 (0)