Skip to content

Commit 90f7340

Browse files
committed
move implicit-fallthrough warning enable to defns.mk
1 parent 01fdd95 commit 90f7340

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

ports/atmel-samd/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ else
148148
endif
149149
endif
150150

151-
CFLAGS += $(INC) -Wall -Werror -std=gnu11 -nostdlib -fshort-enums $(BASE_CFLAGS) $(CFLAGS_MOD) $(COPT) -Wimplicit-fallthrough=2
151+
CFLAGS += $(INC) -Wall -Werror -std=gnu11 -nostdlib -fshort-enums $(BASE_CFLAGS) $(CFLAGS_MOD) $(COPT)
152152

153153
ifeq ($(CHIP_FAMILY), samd21)
154154
CFLAGS += \

py/circuitpy_defns.mk

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ BASE_CFLAGS = \
3131
-fsingle-precision-constant \
3232
-fno-strict-aliasing \
3333
-Wdouble-promotion \
34+
-Wimplicit-fallthrough=2 \
3435
-Wno-endif-labels \
3536
-Wstrict-prototypes \
3637
-Werror-implicit-function-declaration \

0 commit comments

Comments
 (0)