Browse Source

Workaround for recent -Werror=array-bounds AVR issues (#17136)

pull/17156/head
Joel Challis 2 years ago
committed by GitHub
parent
commit
6503987c84
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      platforms/avr/platform.mk

+ 5
- 0
platforms/avr/platform.mk View File

@ -12,6 +12,11 @@ HEX = $(OBJCOPY) -O $(FORMAT) -R .eeprom -R .fuse -R .lock -R .signature
EEP = $(OBJCOPY) -j .eeprom --set-section-flags=.eeprom="alloc,load" --change-section-lma .eeprom=0 --no-change-warnings -O $(FORMAT)
BIN =
# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105523
ifneq ($(findstring 12.,$(shell avr-gcc --version 2>/dev/null)),)
COMPILEFLAGS += --param=min-pagesize=0
endif
COMPILEFLAGS += -funsigned-char
COMPILEFLAGS += -funsigned-bitfields
COMPILEFLAGS += -ffunction-sections


Loading…
Cancel
Save