[Olsr-dev] [PATCH v1 14/14] make: add new GCC 6 warning flags

Ferry Huberts (spam-protected)
Wed Feb 24 00:46:23 CET 2016


From: Ferry Huberts <(spam-protected)>

Signed-off-by: Ferry Huberts <(spam-protected)>
---
 Makefile.inc | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/Makefile.inc b/Makefile.inc
index 6ef2708..498a9ba 100644
--- a/Makefile.inc
+++ b/Makefile.inc
@@ -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
 
-- 
2.5.0




More information about the Olsr-dev mailing list