fix error: array subscript 0 is outside array bounds for newer gcc versions
This commit is contained in:
parent
6f869065b4
commit
5217eb6dbc
1 changed files with 5 additions and 0 deletions
5
Makefile
5
Makefile
|
|
@ -323,6 +323,11 @@ ifeq ($(DEBUG), 1)
|
|||
C_SRC += $(RTT_SRC)/RTT/SEGGER_RTT.c
|
||||
endif
|
||||
|
||||
# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105523
|
||||
ifneq ($(findstring 12.,$(shell $(CC) --version 2>/dev/null)),)
|
||||
CFLAGS += --param=min-pagesize=0
|
||||
endif
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# Linker Flags
|
||||
#------------------------------------------------------------------------------
|
||||
|
|
|
|||
Loading…
Reference in a new issue