make: add new GCC 6 warning flags
authorFerry Huberts <ferry.huberts@pelagic.nl>
Tue, 23 Feb 2016 23:00:12 +0000 (00:00 +0100)
committerFerry Huberts <ferry.huberts@pelagic.nl>
Thu, 25 Feb 2016 12:39:33 +0000 (13:39 +0100)
Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
Makefile.inc

index 88a8d0d..9d79ecf 100644 (file)
@@ -112,6 +112,7 @@ WARNINGS += -Wcast-qual
 WARNINGS += -Wdeclaration-after-statement
 WARNINGS += -Wdisabled-optimization
 WARNINGS += -Wdouble-promotion
+WARNINGS += -Wduplicated-cond
 WARNINGS += -Wendif-labels
 WARNINGS += -Werror=format-security
 WARNINGS += -Wextra
@@ -122,25 +123,31 @@ WARNINGS += -Winit-self
 WARNINGS += -Winline
 WARNINGS += -Wjump-misses-init
 WARNINGS += -Wlogical-op
+WARNINGS += -Wmisleading-indentation
 WARNINGS += -Wmissing-declarations
 WARNINGS += -Wmissing-format-attribute
 WARNINGS += -Wmissing-noreturn
 WARNINGS += -Wmissing-prototypes
 WARNINGS += -Wno-deprecated-declarations
 WARNINGS += -Wno-multichar
+WARNINGS += -Wnull-dereference
 WARNINGS += -Wold-style-definition
 WARNINGS += -Wpointer-arith
 WARNINGS += -Wsequence-point
 WARNINGS += -Wshadow
+WARNINGS += -Wshift-negative-value
+WARNINGS += -Wshift-overflow
 WARNINGS += -Wsign-compare
 WARNINGS += -Wstrict-prototypes
 WARNINGS += -Wswitch-default
 WARNINGS += -Wsync-nand
+WARNINGS += -Wtautological-compare
 WARNINGS += -Wtrampolines
 WARNINGS += -Wundef
 WARNINGS += -Wunused-parameter
 WARNINGS += -Wwrite-strings
 
+
 # we have small inline functions in src/lq_route.h which should always be inlined
 WARNINGS += -finline-limit=350