diff mbox

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

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

Commit Message

Ben Pfaff Dec. 5, 2016, 10:38 p.m. UTC
-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>
---
 configure.ac | 2 ++
 1 file changed, 2 insertions(+)

Comments

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

> -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>
Ben Pfaff Dec. 12, 2016, 10:39 p.m. UTC | #2
On Tue, Dec 06, 2016 at 06:10:01PM -0800, Andy Zhou wrote:
> On Mon, Dec 5, 2016 at 2:38 PM, Ben Pfaff <blp@ovn.org> wrote:
> 
> > -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>

Thanks for the reviews.  I applied these to master.
diff mbox

Patch

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])