aboutsummaryrefslogtreecommitdiffstats
path: root/src/avr
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2017-04-23 19:42:38 -0400
committerKevin O'Connor <kevin@koconnor.net>2017-04-24 08:54:10 -0400
commit1878da228d3e96f86f7130d942801e98e03ddc84 (patch)
treefca23f18d1ae1c63889051e7410d7c46e873ecd0 /src/avr
parent37865d69a2cb427e75e2bf49e686d00f9d6a0efe (diff)
downloadkutter-1878da228d3e96f86f7130d942801e98e03ddc84.tar.gz
kutter-1878da228d3e96f86f7130d942801e98e03ddc84.tar.xz
kutter-1878da228d3e96f86f7130d942801e98e03ddc84.zip
build: Add workaround to suppress broken avr-gcc "misspelled" warnings
Detect avr gcc v4.8.1 and then disable warnings during the klipper.o linking to suppress bogus "misspelled signal handler" warnings. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'src/avr')
-rw-r--r--src/avr/Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/avr/Makefile b/src/avr/Makefile
index 4e6631b5..ee3da1b5 100644
--- a/src/avr/Makefile
+++ b/src/avr/Makefile
@@ -13,6 +13,9 @@ src-$(CONFIG_AVR_WATCHDOG) += avr/watchdog.c
src-$(CONFIG_AVR_USBSERIAL) += avr/usbserial.c ../lib/pjrc_usb_serial/usb_serial.c
src-$(CONFIG_AVR_SERIAL) += avr/serial.c
+# Suppress broken "misspelled signal handler" warnings on gcc 4.8.1
+CFLAGS_klipper.o := $(if $(filter 4.8.1, $(shell $(CC) -dumpversion)), -w)
+
# Build the additional hex output file
target-y += $(OUT)klipper.elf.hex