diff options
| author | hathach <[email protected]> | 2021-10-15 17:35:05 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2021-10-15 23:54:31 +0700 |
| commit | 0b249618b0469529da748e3e5478751cd56acd31 (patch) | |
| tree | 48fde1b0c69e2d27bd4d3ccc963a6d3ecd6c2546 /hw | |
| parent | 7596cb30797c625a0523e0f68ef65296740538e0 (diff) | |
fix -Wcast-qual
Diffstat (limited to 'hw')
| -rw-r--r-- | hw/bsp/nrf/family.mk | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/hw/bsp/nrf/family.mk b/hw/bsp/nrf/family.mk index d1afd2587..d8283a9e6 100644 --- a/hw/bsp/nrf/family.mk +++ b/hw/bsp/nrf/family.mk @@ -14,19 +14,7 @@ CFLAGS += \ -DCONFIG_GPIO_AS_PINRESET # suppress warning caused by vendor mcu driver -CFLAGS += -Wno-error=undef -Wno-error=unused-parameter -Wno-error=cast-align - -# due to tusb_hal_nrf_power_event -GCCVERSION = $(firstword $(subst ., ,$(shell arm-none-eabi-gcc -dumpversion))) -ifeq ($(CMDEXE),1) - ifeq ($(shell if $(GCCVERSION) geq 8 echo 1), 1) - CFLAGS += -Wno-error=cast-function-type - endif -else - ifeq ($(shell expr $(GCCVERSION) \>= 8), 1) - CFLAGS += -Wno-error=cast-function-type - endif -endif +CFLAGS += -Wno-error=undef -Wno-error=unused-parameter -Wno-error=cast-align -Wno-error=cast-qual # All source paths should be relative to the top level. LD_FILE ?= hw/bsp/nrf/boards/$(BOARD)/nrf52840_s140_v6.ld |
