Merge pull request #321 from SaidAlvarado/fix-273-for-gcc-13
fix compilation issue 'array subscript 0 is outside array bounds' for arm-none-eabi-gcc version 13
This commit is contained in:
commit
e7450022a8
1 changed files with 2 additions and 1 deletions
3
Makefile
3
Makefile
|
|
@ -342,7 +342,8 @@ endif
|
|||
CFLAGS += -DDFU_APP_DATA_RESERVED=$(DFU_APP_DATA_RESERVED)
|
||||
|
||||
# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105523
|
||||
ifneq ($(findstring 12.,$(shell $(CC) --version 2>/dev/null)),)
|
||||
# Fixes for gcc version 12 and 13.
|
||||
ifneq (,$(filter 12.% 13.%,$(shell $(CC) -dumpversion 2>/dev/null)))
|
||||
CFLAGS += --param=min-pagesize=0
|
||||
endif
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue