Skip to content

Commit

Permalink
fix(zero-element-array): Remove an array with 0 elements
Browse files Browse the repository at this point in the history
ISO C forbids zero-size arrays.
From our understanding, that declaration does not achieve anything.

Signed-off-by: Miguel Silva <[email protected]>
  • Loading branch information
miguelafsilva5 committed Feb 6, 2024
1 parent caa93e8 commit e1b2355
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/arch/armv8/inc/arch/generic_timer.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ struct generic_timer_cntctrl {
uint64_t CNTCV;
uint8_t res0[0x20 - 0x10];
uint32_t CNTDIF0;
uint32_t CNTDIF[0];
uint8_t res1[0xfd0 - 0x24];
uint32_t CounterID[12];
} __attribute__((packed, aligned(PAGE_SIZE)));
Expand Down

0 comments on commit e1b2355

Please sign in to comment.