diff options
| author | Jeff Epler <jepler@gmail.com> | 2020-09-13 13:12:35 -0500 |
|---|---|---|
| committer | Jeff Epler <jepler@gmail.com> | 2020-09-13 13:13:09 -0500 |
| commit | 90f7340bfc35d19fcf5e11c078c7f45399ed07e7 (patch) | |
| tree | 33768068d74c8c15af0cbd2a8d8bf616134d8e9e | |
| parent | 01fdd9598a83fee98b2447c50ea911d7bfe205cb (diff) | |
move implicit-fallthrough warning enable to defns.mk
| -rw-r--r-- | ports/atmel-samd/Makefile | 2 | ||||
| -rw-r--r-- | py/circuitpy_defns.mk | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/ports/atmel-samd/Makefile b/ports/atmel-samd/Makefile index 20c79de8f..72c7d9688 100644 --- a/ports/atmel-samd/Makefile +++ b/ports/atmel-samd/Makefile @@ -148,7 +148,7 @@ else 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) CFLAGS += \ diff --git a/py/circuitpy_defns.mk b/py/circuitpy_defns.mk index 04e38d81e..0e87287c1 100644 --- a/py/circuitpy_defns.mk +++ b/py/circuitpy_defns.mk @@ -31,6 +31,7 @@ BASE_CFLAGS = \ -fsingle-precision-constant \ -fno-strict-aliasing \ -Wdouble-promotion \ + -Wimplicit-fallthrough=2 \ -Wno-endif-labels \ -Wstrict-prototypes \ -Werror-implicit-function-declaration \ |
