diff options
author | thakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-09-22 00:09:28 +0000 |
---|---|---|
committer | thakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-09-22 00:09:28 +0000 |
commit | 6673317aabd12e4575027ed300d006f9e2bc3824 (patch) | |
tree | a8d889c3d1e3590d98e731dc55ba8963ff1f335e /build | |
parent | 1804aa715fd72666c7c22d2cf6a773ecbd6eb43d (diff) | |
download | chromium_src-6673317aabd12e4575027ed300d006f9e2bc3824.zip chromium_src-6673317aabd12e4575027ed300d006f9e2bc3824.tar.gz chromium_src-6673317aabd12e4575027ed300d006f9e2bc3824.tar.bz2 |
Mac: clang build
Fixes the last few warnings / errors necessary to build chrome/mac with clang.
See http://code.google.com/p/chromium/wiki/Clang
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/2762014
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@60131 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'build')
-rw-r--r-- | build/common.gypi | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/build/common.gypi b/build/common.gypi index d81c567..66294115 100644 --- a/build/common.gypi +++ b/build/common.gypi @@ -1234,6 +1234,13 @@ ['chromium_mac_pch', {'GCC_PRECOMPILE_PREFIX_HEADER': 'YES'}, {'GCC_PRECOMPILE_PREFIX_HEADER': 'NO'} ], + ['clang==1', { + 'WARNING_CFLAGS': [ + # Don't die on dtoa code that uses a char as an array index. + # This is required solely for base/third_party/dmg_fp/dtoa.cc. + '-Wno-char-subscripts', + ], + }], ], }, 'target_conditions': [ |