From 2ac5410d3ddf148a054303625fb87961758668e4 Mon Sep 17 00:00:00 2001 From: "thakis@chromium.org" Date: Tue, 20 May 2014 19:50:45 +0000 Subject: clang: Turn on -Wabsolute-value. BUG=351479 TBR=hans@chromium.org NOTRY=true Review URL: https://codereview.chromium.org/274533004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@271732 0039d316-1c4b-4281-b951-d872f2087c98 --- third_party/libexif/libexif.gyp | 6 +++++- third_party/mesa/mesa.gyp | 2 ++ 2 files changed, 7 insertions(+), 1 deletion(-) (limited to 'third_party') diff --git a/third_party/libexif/libexif.gyp b/third_party/libexif/libexif.gyp index eebb875..a200745 100644 --- a/third_party/libexif/libexif.gyp +++ b/third_party/libexif/libexif.gyp @@ -56,13 +56,17 @@ ['clang==1', { 'cflags': [ '-Wno-enum-conversion', - '-Wno-switch' + '-Wno-switch', + # libexif uses fabs(int) to cast to float. + '-Wno-absolute-value', ], 'xcode_settings': { 'WARNING_CFLAGS': [ '-Wno-enum-conversion', '-Wno-switch', '-Wno-format', + # libexif uses fabs(int) to cast to float. + '-Wno-absolute-value', ], }, }], diff --git a/third_party/mesa/mesa.gyp b/third_party/mesa/mesa.gyp index 8cba151..2b06eb4 100644 --- a/third_party/mesa/mesa.gyp +++ b/third_party/mesa/mesa.gyp @@ -731,6 +731,7 @@ 'xcode_settings': { 'WARNING_CFLAGS': [ '-Wno-tautological-constant-out-of-range-compare', + '-Wno-absolute-value', # Fires on st_atom_array.c, might be a bug ], 'WARNING_CFLAGS!': [ # Don't warn about string->bool used in asserts. @@ -739,6 +740,7 @@ }, 'cflags': [ '-Wno-tautological-constant-out-of-range-compare', + '-Wno-absolute-value', ], 'cflags!': [ '-Wstring-conversion', -- cgit v1.1