[nrf52840] add conditional -Wno-expansion-to-defined for GCC7 (#2514)

This commit is contained in:
Neal Jackson
2018-01-29 16:12:27 +00:00
committed by Jonathan Hui
parent b12cb9e41f
commit 0403a1baf5
+5
View File
@@ -40,6 +40,7 @@ RANLIB = arm-none-eabi-ranlib
OBJCOPY = arm-none-eabi-objcopy
BuildJobs ?= 10
GCCVersion = $(shell expr `$(CC) -dumpversion | cut -f1 -d.`)
configure_OPTIONS = \
--enable-cli-app=all \
@@ -87,6 +88,10 @@ ifeq ($(USB),1)
COMMONCFLAGS += -DUSB_CDC_AS_SERIAL_TRANSPORT=1
endif
ifeq ($(shell expr $(GCCVersion) \>= 7), 1)
COMMONCFLAGS += -Wno-expansion-to-defined
endif
CPPFLAGS += \
$(COMMONCFLAGS) \
$(target_CPPFLAGS) \