diff mbox

[ovs-dev,3/4] configure: Enable new warning options added in GCC 5.

Message ID 20161205223853.29234-3-blp@ovn.org
State Accepted
Headers show

Commit Message

Ben Pfaff Dec. 5, 2016, 10:38 p.m. UTC
Signed-off-by: Ben Pfaff <blp@ovn.org>
---
 configure.ac | 4 ++++
 1 file changed, 4 insertions(+)

Comments

Andy Zhou Dec. 7, 2016, 2:09 a.m. UTC | #1
On Mon, Dec 5, 2016 at 2:38 PM, Ben Pfaff <blp@ovn.org> wrote:

> Signed-off-by: Ben Pfaff <blp@ovn.org>
> ---
>
Acked-by: Andy Zhou <azhou@ovn.org>
diff mbox

Patch

diff --git a/configure.ac b/configure.ac
index ece6bf3..b3ade95 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])