diff options
| author | Jeff Epler <jepler@gmail.com> | 2020-09-12 14:15:32 -0500 |
|---|---|---|
| committer | Jeff Epler <jepler@gmail.com> | 2020-09-12 15:11:29 -0500 |
| commit | 5729097bc415a935b0e18b034a6313cf0b74daab (patch) | |
| tree | f6b9c8363e890333da6db0d5a2fed08736922465 | |
| parent | 12d826d941f705fbfa0ced667d1c7efb264d95b1 (diff) | |
atmel-samd: enable build error for implicit fallthrough
If any diagnostics occur, we will want to either add `/* FALLTHROUGH */`
or `break;` as appropriate. I only tested a few builds (trinket m0
and metro m4 express)
| -rw-r--r-- | ports/atmel-samd/Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ports/atmel-samd/Makefile b/ports/atmel-samd/Makefile index 489f3a7af..f00366c27 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) +CFLAGS += $(INC) -Wall -Werror -std=gnu11 -nostdlib -fshort-enums $(BASE_CFLAGS) $(CFLAGS_MOD) $(COPT) -Wimplicit-fallthrough=2 ifeq ($(CHIP_FAMILY), samd21) CFLAGS += \ |
