[2/2] btrfs-progs: Makefile: Add -Wimplicit-fallthrough
diff mbox series

Message ID 20191022020228.14117-3-marcos.souza.org@gmail.com
State New
Headers show
Series
  • btrfs-progs: Setting implicit-fallthrough by default
Related show

Commit Message

Marcos Paulo de Souza Oct. 22, 2019, 2:02 a.m. UTC
From: Marcos Paulo de Souza <mpdesouza@suse.com>

Avoid introducing new cases of implicit fallthrough by having this flag
always set.

Signed-off-by: Marcos Paulo de Souza <mpdesouza@suse.com>
---
 Makefile | 1 +
 1 file changed, 1 insertion(+)

Patch
diff mbox series

diff --git a/Makefile b/Makefile
index 21bf2717..2f04e880 100644
--- a/Makefile
+++ b/Makefile
@@ -86,6 +86,7 @@  CFLAGS = $(SUBST_CFLAGS) \
 	 -D_XOPEN_SOURCE=700  \
 	 -fno-strict-aliasing \
 	 -fPIC \
+	 -Wimplicit-fallthrough \
 	 -I$(TOPDIR) \
 	 -I$(TOPDIR)/libbtrfsutil \
 	 $(DISABLE_WARNING_FLAGS) \