summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefano Pigozzi <stefano.pigozzi@gmail.com>2014-02-13 22:40:29 +0100
committerStefano Pigozzi <stefano.pigozzi@gmail.com>2014-02-13 22:43:17 +0100
commit8009646583d523fc045d10c726a3ee11d9d3d3ff (patch)
tree1b327defa0294490a390c108248982bc682caf30
parent2705c667998ac860fc443f282def006fcbb4abe5 (diff)
downloadmpv-8009646583d523fc045d10c726a3ee11d9d3d3ff.tar.bz2
mpv-8009646583d523fc045d10c726a3ee11d9d3d3ff.tar.xz
build: disable clang's tautological compare warnings
This silences two non issues in the client.c file. Fixing them as clang would want us to, would introduce security bugs and potential crashes.
-rw-r--r--waftools/detections/compiler.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/waftools/detections/compiler.py b/waftools/detections/compiler.py
index f473680bc6..82aa93b698 100644
--- a/waftools/detections/compiler.py
+++ b/waftools/detections/compiler.py
@@ -25,6 +25,8 @@ def __add_gcc_flags__(ctx):
"-Wno-switch", "-Wno-parentheses", "-Wpointer-arith",
"-Wredundant-decls", "-Wno-pointer-sign",
"-Werror=implicit-function-declaration",
+ "-Wno-tautological-compare",
+ "-Wno-tautological-constant-out-of-range-compare",
"-Wno-error=deprecated-declarations",
"-Wno-error=unused-function" ]