diff options
author | thakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-05-20 19:50:45 +0000 |
---|---|---|
committer | thakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-05-20 19:50:45 +0000 |
commit | 2ac5410d3ddf148a054303625fb87961758668e4 (patch) | |
tree | cbcf99a036f771d7435e184e375f43b8137b410f /third_party | |
parent | e4be88bde4a9b1f0d9a56bfc68447e0105657457 (diff) | |
download | chromium_src-2ac5410d3ddf148a054303625fb87961758668e4.zip chromium_src-2ac5410d3ddf148a054303625fb87961758668e4.tar.gz chromium_src-2ac5410d3ddf148a054303625fb87961758668e4.tar.bz2 |
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
Diffstat (limited to 'third_party')
-rw-r--r-- | third_party/libexif/libexif.gyp | 6 | ||||
-rw-r--r-- | third_party/mesa/mesa.gyp | 2 |
2 files changed, 7 insertions, 1 deletions
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', |