From 445b3fbf826dd074b1f2a34cddcd3f126462f0d1 Mon Sep 17 00:00:00 2001 From: wm4 Date: Mon, 2 Mar 2015 19:09:25 +0100 Subject: buid: readd -Wparentheses This warning wasn't overly helpful in the past, and warned against perfectly fine code. But at least with recent gcc versions, this is the warning that complains about assignments in if expressions (why???), so we want to enable it. Also change all the code this warning complains about for no reason. --- waftools/detections/compiler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'waftools') diff --git a/waftools/detections/compiler.py b/waftools/detections/compiler.py index 7c25c3dadc..fa7986683f 100644 --- a/waftools/detections/compiler.py +++ b/waftools/detections/compiler.py @@ -39,7 +39,7 @@ def __add_generic_flags__(ctx): def __add_gcc_flags__(ctx): ctx.env.CFLAGS += ["-Wall", "-Wundef", "-Wmissing-prototypes", "-Wshadow", - "-Wno-switch", "-Wno-parentheses", "-Wpointer-arith", + "-Wno-switch", "-Wparentheses", "-Wpointer-arith", "-Wredundant-decls", "-Wno-pointer-sign"] def __add_clang_flags__(ctx): -- cgit v1.2.3