From 306b1950d1302fc3e15aae10aa67f3513cdd87f9 Mon Sep 17 00:00:00 2001 From: "thakis@chromium.org" Date: Wed, 18 Jan 2012 00:05:06 +0000 Subject: 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 --- third_party/yasm/yasm.gyp | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) (limited to 'third_party/yasm') 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', -- cgit v1.1