From 8f0bb86c0287708854481a169723d69f81c39d46 Mon Sep 17 00:00:00 2001 From: maniacbug Date: Fri, 8 Jul 2011 06:15:52 -0700 Subject: [PATCH] No strict aliasing for AVR AVR build generates numerous aliasing errors. This -f switch silences them. --- cpu/avr/Makefile.avr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpu/avr/Makefile.avr b/cpu/avr/Makefile.avr index 319802167..45de3badd 100644 --- a/cpu/avr/Makefile.avr +++ b/cpu/avr/Makefile.avr @@ -103,7 +103,7 @@ AS = avr-as AR = avr-ar OBJCOPY = avr-objcopy STRIP = avr-strip -CFLAGSNO = -Wall -mmcu=$(MCU) -gdwarf-2 \ +CFLAGSNO = -Wall -mmcu=$(MCU) -gdwarf-2 -fno-strict-aliasing \ -I. -I$(CONTIKI)/core -I$(CONTIKI_CPU) $(USB_INCLUDES) \ -I$(CONTIKI)/platform/$(TARGET) \ $(CONTIKI_PLAT_DEFS)