-Wnull-dereference is also new in GCC 6 but upon testing it produces far
too many false positives to be usable for OVS.

Signed-off-by: Ben Pfaff <[email protected]>
---
 configure.ac | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/configure.ac b/configure.ac
index b3ade95..4414230 100644
--- a/configure.ac
+++ b/configure.ac
@@ -162,6 +162,8 @@ OVS_ENABLE_OPTION([-Wswitch-bool])
 OVS_ENABLE_OPTION([-Wlogical-not-parentheses])
 OVS_ENABLE_OPTION([-Wsizeof-array-argument])
 OVS_ENABLE_OPTION([-Wbool-compare])
+OVS_ENABLE_OPTION([-Wshift-negative-value])
+OVS_ENABLE_OPTION([-Wduplicated-cond])
 OVS_ENABLE_OPTION([-Qunused-arguments])
 OVS_CONDITIONAL_CC_OPTION([-Wno-unused], [HAVE_WNO_UNUSED])
 OVS_CONDITIONAL_CC_OPTION([-Wno-unused-parameter], [HAVE_WNO_UNUSED_PARAMETER])
-- 
2.10.2

_______________________________________________
dev mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Reply via email to