Skip to content

Commit

Permalink
FIX: replace zero-length array with empty brackets array to suppress …
Browse files Browse the repository at this point in the history
…array subscript warnings
  • Loading branch information
r2axz committed Jul 14, 2021
1 parent 8f6b696 commit 9329fae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion circ_buf.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
typedef struct {
int head;
int tail;
uint8_t data[0];
uint8_t data[];
} circ_buf_t;

/* Returns number of bytes in buffer ()*/
Expand Down

0 comments on commit 9329fae

Please # to comment.