From 398b6657a6b9e534c2c4f99bc449083139b277ef Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Mon, 5 Dec 2016 14:29:24 -0800 Subject: [PATCH] configure: Enable new warning options added in GCC 5. Signed-off-by: Ben Pfaff Acked-by: Andy Zhou --- configure.ac | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/configure.ac b/configure.ac index ece6bf32758..b3ade95e520 100644 --- a/configure.ac +++ b/configure.ac @@ -158,6 +158,10 @@ OVS_ENABLE_OPTION([-Wmissing-prototypes]) OVS_ENABLE_OPTION([-Wmissing-field-initializers]) OVS_ENABLE_OPTION([-Wthread-safety]) OVS_ENABLE_OPTION([-fno-strict-aliasing]) +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([-Qunused-arguments]) OVS_CONDITIONAL_CC_OPTION([-Wno-unused], [HAVE_WNO_UNUSED]) OVS_CONDITIONAL_CC_OPTION([-Wno-unused-parameter], [HAVE_WNO_UNUSED_PARAMETER])