Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5)

Unified Diff: third_party/yasm/yasm.gyp

Issue 9231027: Disable harmless warnings for 3rdparty code: yasm. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/yasm/yasm.gyp
diff --git a/third_party/yasm/yasm.gyp b/third_party/yasm/yasm.gyp
index 28fd25b7adf2365249a599a2f269b53aff48345a..f9f42423b3e9018a202d6a04cb8ae9ae88819f88 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',
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698