move implicit-fallthrough warning enable to defns.mk
This commit is contained in:
parent
01fdd9598a
commit
90f7340bfc
|
@ -148,7 +148,7 @@ else
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
CFLAGS += $(INC) -Wall -Werror -std=gnu11 -nostdlib -fshort-enums $(BASE_CFLAGS) $(CFLAGS_MOD) $(COPT) -Wimplicit-fallthrough=2
|
CFLAGS += $(INC) -Wall -Werror -std=gnu11 -nostdlib -fshort-enums $(BASE_CFLAGS) $(CFLAGS_MOD) $(COPT)
|
||||||
|
|
||||||
ifeq ($(CHIP_FAMILY), samd21)
|
ifeq ($(CHIP_FAMILY), samd21)
|
||||||
CFLAGS += \
|
CFLAGS += \
|
||||||
|
|
|
@ -31,6 +31,7 @@ BASE_CFLAGS = \
|
||||||
-fsingle-precision-constant \
|
-fsingle-precision-constant \
|
||||||
-fno-strict-aliasing \
|
-fno-strict-aliasing \
|
||||||
-Wdouble-promotion \
|
-Wdouble-promotion \
|
||||||
|
-Wimplicit-fallthrough=2 \
|
||||||
-Wno-endif-labels \
|
-Wno-endif-labels \
|
||||||
-Wstrict-prototypes \
|
-Wstrict-prototypes \
|
||||||
-Werror-implicit-function-declaration \
|
-Werror-implicit-function-declaration \
|
||||||
|
|
Loading…
Reference in New Issue