Add fallthrough warning for switch cases explicitly to CFLAGS

This commit is contained in:
Mario Hüttel 2020-02-15 21:06:45 +01:00
parent 7df97831be
commit 43473efcdd
2 changed files with 2 additions and 2 deletions

View File

@ -60,7 +60,7 @@ LFLAGS += -Tstm32f407vet6_flash.ld -Wl,-Map=$(mapfile).map
CFLAGS = -c -fmessage-length=0 -mlittle-endian -mthumb -mcpu=cortex-m4 -mthumb-interwork
CFLAGS += -mfloat-abi=hard -mfpu=fpv4-sp-d16 -nostartfiles -O0 -g
CFLAGS += -Wall -Wextra -Wold-style-declaration -Wuninitialized -Wmaybe-uninitialized -Wunused-parameter
CFLAGS += -Wall -Wextra -Wold-style-declaration -Wuninitialized -Wmaybe-uninitialized -Wunused-parameter -Wimplicit-fallthrough=3 -Wsign-compare
####################################################################################
OBJ = $(CFILES:%.c=$(OBJDIR)/%.c.o)

View File

@ -138,7 +138,7 @@ static shellmatta_retCode_t shell_cmd_pt1000_res(const shellmatta_handle_t han
temp_prefix = "<";
break;
case 0:
/* Expected fallthrough */
/* FALLTHRU */
default:
temp_prefix = "";
break;