From 905d453a87d63cb8b35ba7ac8fb8d9c82d8a2aa9 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Mon, 5 Dec 2016 14:38:08 -0800 Subject: configure: Enable new warning options added in GCC 6. -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 Acked-by: Andy Zhou --- configure.ac | 2 ++ 1 file changed, 2 insertions(+) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index b3ade95e5..441423059 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]) -- cgit v1.2.1