https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111035
Bug ID: 111035 Summary: Getting warning array subscript 0 is outside array bounds Product: gcc Version: 12.2.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: prsaxena at silabs dot com Target Milestone: --- Getting warnings while compiling Makefile : 2nd warning : ../../api/btl_interface.h:465:44: error: array subscript 0 is outside array bounds of 'FirstBootloaderTable_t *[0]' [-Werror=array-bounds] 465 | #define firstBootloaderTable (*(FirstBootloaderTable_t **) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cc1: all warnings being treated as errors With previous gcc version(10.3-2021.10), Makefile is compiled without any errors. I am facing above warnings when same code is being compiled with newer gcc version(12.2.1). Thanks