diff options
author | thakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-01-18 00:05:06 +0000 |
---|---|---|
committer | thakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-01-18 00:05:06 +0000 |
commit | 306b1950d1302fc3e15aae10aa67f3513cdd87f9 (patch) | |
tree | ffda4cc18fbc92472823073e9984a90059702fef /third_party | |
parent | b72dfb2453acef0ad31f5e60c5f7f46c9a72911b (diff) | |
download | chromium_src-306b1950d1302fc3e15aae10aa67f3513cdd87f9.zip chromium_src-306b1950d1302fc3e15aae10aa67f3513cdd87f9.tar.gz chromium_src-306b1950d1302fc3e15aae10aa67f3513cdd87f9.tar.bz2 |
Disable harmless warnings for 3rdparty code: yasm.
BUG=102390
Review URL: https://chromiumcodereview.appspot.com/9231027
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@117993 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'third_party')
-rw-r--r-- | third_party/yasm/yasm.gyp | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/third_party/yasm/yasm.gyp b/third_party/yasm/yasm.gyp index 28fd25b..f9f4242 100644 --- a/third_party/yasm/yasm.gyp +++ b/third_party/yasm/yasm.gyp @@ -158,6 +158,19 @@ ], 'defines': [ '<@(yasm_defines)' ], 'cflags': [ '<@(yasm_cflags)', ], + 'conditions': [ + ['clang==1', { + 'xcode_settings': { + 'WARNING_CFLAGS': [ + # yasm passes a `const elf_machine_sym*` through `void*`. + '-Wno-incompatible-pointer-types', + ], + }, + 'cflags': [ + '-Wno-incompatible-pointer-types', + ], + }], + ], 'rules': [ { 'rule_name': 'generate_gperf', @@ -527,6 +540,19 @@ 'cflags': [ '-std=gnu99', ], + 'conditions': [ + ['clang==1', { + 'xcode_settings': { + 'WARNING_CFLAGS': [ + # re2c is missing CLOSEVOP from one switch. + '-Wno-switch-enum', + ], + }, + 'cflags': [ + '-Wno-switch-enum', + ], + }], + ], }, { 'target_name': 'genmodule', |