From b97638be68b57ad451060c6bab1563ae5416c1a3 Mon Sep 17 00:00:00 2001 From: Eyal Soha Date: Tue, 23 Aug 2022 10:58:31 -0600 Subject: [PATCH] Add implicit-fallthrough flag to Makefile in comment. This flag prevents many warnings by allowing the compiler to recognize the "fall through" comments. --- Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/Makefile b/Makefile index dad5057..8027b5d 100644 --- a/Makefile +++ b/Makefile @@ -6,6 +6,7 @@ EXTRA_CFLAGS += -O2 #EXTRA_CFLAGS += -Werror #EXTRA_CFLAGS += -pedantic #EXTRA_CFLAGS += -Wshadow -Wpointer-arith -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes +#EXTRA_CFLAGS += -Wimplicit-fallthrough=1 EXTRA_CFLAGS += -Wno-unused-variable #EXTRA_CFLAGS += -Wno-unused-value