]> git.proxmox.com Git - mirror_ovs.git/commitdiff
configure: Enable new warning options added in GCC 6.
authorBen Pfaff <blp@ovn.org>
Mon, 5 Dec 2016 22:38:08 +0000 (14:38 -0800)
committerBen Pfaff <blp@ovn.org>
Mon, 12 Dec 2016 22:34:34 +0000 (14:34 -0800)
-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 <blp@ovn.org>
Acked-by: Andy Zhou <azhou@ovn.org>
configure.ac

index b3ade95e5204e0e8e286da7d9b60b05dec0e049a..441423059b3856c50c3c4c748633fc6e5ddb2326 100644 (file)
@@ -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])