summaryrefslogtreecommitdiffstats
path: root/waftools/detections
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-03-02 19:09:25 +0100
committerwm4 <wm4@nowhere>2015-03-02 19:09:25 +0100
commit445b3fbf826dd074b1f2a34cddcd3f126462f0d1 (patch)
tree29b51fb3eaa7a2f23d120a265c4f1cc0a1afef1c /waftools/detections
parent4b177bd5c22fbeeba9ddae77503ab9938f2503c3 (diff)
downloadmpv-445b3fbf826dd074b1f2a34cddcd3f126462f0d1.tar.bz2
mpv-445b3fbf826dd074b1f2a34cddcd3f126462f0d1.tar.xz
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.
Diffstat (limited to 'waftools/detections')
-rw-r--r--waftools/detections/compiler.py2
1 files changed, 1 insertions, 1 deletions
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):