diff options
author | thakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-01-18 00:27:07 +0000 |
---|---|---|
committer | thakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-01-18 00:27:07 +0000 |
commit | bc2434b67ce05143b934f011ed551a39ebfd5e5a (patch) | |
tree | e4ef4a62b9efaa6b272215153eda7f2d97e4b656 /third_party | |
parent | df5edc6d91b9f36507d9ae4a2a6aa4f8688e58e5 (diff) | |
download | chromium_src-bc2434b67ce05143b934f011ed551a39ebfd5e5a.zip chromium_src-bc2434b67ce05143b934f011ed551a39ebfd5e5a.tar.gz chromium_src-bc2434b67ce05143b934f011ed551a39ebfd5e5a.tar.bz2 |
Disable harmless warnings for 3rdparty code: libxml, libxslt.
BUG=102390
Review URL: https://chromiumcodereview.appspot.com/9242024
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@117998 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'third_party')
-rw-r--r-- | third_party/libxml/libxml.gyp | 14 | ||||
-rw-r--r-- | third_party/libxslt/libxslt.gyp | 11 |
2 files changed, 25 insertions, 0 deletions
diff --git a/third_party/libxml/libxml.gyp b/third_party/libxml/libxml.gyp index 56ba94f..27b8b14 100644 --- a/third_party/libxml/libxml.gyp +++ b/third_party/libxml/libxml.gyp @@ -192,6 +192,20 @@ }, { # else: OS!="win" 'product_name': 'xml2', }], + ['clang == 1', { + 'xcode_settings': { + 'WARNING_CFLAGS': [ + # libxml passes `const unsigned char*` through `const char*`. + '-Wno-pointer-sign', + # libxml converts xmlSchemaValType to xmlSchemaTypeType. + '-Wno-conversion', + ], + }, + 'cflags': [ + '-Wno-pointer-sign', + '-Wno-conversion', + ], + }], ], }], ], diff --git a/third_party/libxslt/libxslt.gyp b/third_party/libxslt/libxslt.gyp index 4ac5e6c..dea6ae8 100644 --- a/third_party/libxslt/libxslt.gyp +++ b/third_party/libxslt/libxslt.gyp @@ -108,6 +108,17 @@ }, 'conditions': [ ['OS!="win"', {'product_name': 'xslt'}], + ['clang == 1', { + 'xcode_settings': { + 'WARNING_CFLAGS': [ + # libxslt stores a char[3] in a `const unsigned char*`. + '-Wno-pointer-sign', + ], + }, + 'cflags': [ + '-Wno-pointer-sign', + ], + }], ], }], ], |