From c5d2a0da0404468637553aa17430bab2b75ac0f7 Mon Sep 17 00:00:00 2001 From: Jeff Epler Date: Mon, 9 Apr 2018 21:17:26 -0500 Subject: [PATCH] esp8266: Disable "strict aliasing" in compiler like in atmel-samd This caused a fatal compiler diagnostic after #750. This compiler flag is already specified in the atmel-samd builds, so it makes sense to do it here for the same reasons. --- ports/esp8266/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ports/esp8266/Makefile b/ports/esp8266/Makefile index 4a598b6291..06439a19ea 100644 --- a/ports/esp8266/Makefile +++ b/ports/esp8266/Makefile @@ -48,7 +48,7 @@ CFLAGS_XTENSA = -fsingle-precision-constant -Wdouble-promotion \ -Wl,-EL -mlongcalls -mtext-section-literals -mforce-l32 \ -DLWIP_OPEN_SRC -CFLAGS = $(INC) -Wall -Wpointer-arith -Werror -std=gnu99 -nostdlib -DUART_OS=$(UART_OS) \ +CFLAGS = $(INC) -Wall -Wpointer-arith -Werror -Wno-strict-aliasing -std=gnu99 -nostdlib -DUART_OS=$(UART_OS) \ $(CFLAGS_XTENSA) $(CFLAGS_MOD) $(COPT) $(CFLAGS_EXTRA) LDSCRIPT = esp8266.ld