diff options
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', + ], + }], ], }], ], |