summaryrefslogtreecommitdiffstats
path: root/waftools
diff options
context:
space:
mode:
authorNiklas Haas <git@nand.wakku.to>2016-06-07 13:39:43 +0200
committerwm4 <wm4@nowhere>2016-06-07 14:12:33 +0200
commit5b5db336e93622dc4c54e02a42a39d1b3b1a9fbd (patch)
tree884d1b3e84ff5d51879ee351bc84aaadc024ada0 /waftools
parent38ac5d5e7ba2e9a7234c45d431ef9b885f787a2c (diff)
downloadmpv-5b5db336e93622dc4c54e02a42a39d1b3b1a9fbd.tar.bz2
mpv-5b5db336e93622dc4c54e02a42a39d1b3b1a9fbd.tar.xz
build: silence -Wunused-result
For clang, it's enough to just put (void) around usages we are intentionally ignoring the result of. Since GCC does not seem to want to respect this decision, we are forced to disable the warning globally.
Diffstat (limited to 'waftools')
-rw-r--r--waftools/detections/compiler.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/waftools/detections/compiler.py b/waftools/detections/compiler.py
index ada20796b1..5c4b680343 100644
--- a/waftools/detections/compiler.py
+++ b/waftools/detections/compiler.py
@@ -41,7 +41,9 @@ def __add_generic_flags__(ctx):
def __add_gcc_flags__(ctx):
ctx.env.CFLAGS += ["-Wall", "-Wundef", "-Wmissing-prototypes", "-Wshadow",
"-Wno-switch", "-Wparentheses", "-Wpointer-arith",
- "-Wno-pointer-sign"]
+ "-Wno-pointer-sign",
+ # GCC bug 66425
+ "-Wno-unused-result"]
def __add_clang_flags__(ctx):
ctx.env.CFLAGS += ["-Wno-logical-op-parentheses", "-fcolor-diagnostics",