From 8009646583d523fc045d10c726a3ee11d9d3d3ff Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Thu, 13 Feb 2014 22:40:29 +0100 Subject: 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. --- waftools/detections/compiler.py | 2 ++ 1 file changed, 2 insertions(+) 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" ] -- cgit v1.2.3