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

Unified Diff: icu.gyp

Issue 433183002: Update clang warnings after r287092. (Closed) Base URL: http://src.chromium.org/chrome/trunk/deps/third_party/icu52/
Patch Set: Created 6 years, 5 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: icu.gyp
===================================================================
--- icu.gyp (revision 285387)
+++ icu.gyp (working copy)
@@ -186,6 +186,18 @@
'source/i18n',
],
},
+ 'variables': {
+ 'clang_warning_flags': [
+ # ICU uses its own deprecated functions.
+ '-Wno-deprecated-declarations',
+ # ICU prefers `a && b || c` over `(a && b) || c`.
+ '-Wno-logical-op-parentheses',
+ # ICU has some `unsigned < 0` checks.
+ '-Wno-tautological-compare',
+ # Looks like a real issue, see http://crbug.com/114660
+ '-Wno-return-type-c-linkage',
+ ],
+ },
# Since ICU wants to internally use its own deprecated APIs, don't
# complain about it.
'cflags': [
@@ -212,26 +224,6 @@
[ 'use_system_icu==0 and want_separate_host_toolset==0', {
'toolsets': ['target'],
}],
- ['clang==1', {
- 'xcode_settings': {
- 'WARNING_CFLAGS': [
- # ICU uses its own deprecated functions.
- '-Wno-deprecated-declarations',
- # ICU prefers `a && b || c` over `(a && b) || c`.
- '-Wno-logical-op-parentheses',
- # ICU has some `unsigned < 0` checks.
- '-Wno-tautological-compare',
- # Looks like a real issue, see http://crbug.com/114660
- '-Wno-return-type-c-linkage',
- ],
- },
- 'cflags': [
- '-Wno-deprecated-declarations',
- '-Wno-logical-op-parentheses',
- '-Wno-tautological-compare',
- '-Wno-return-type-c-linkage',
- ],
- }],
['OS == "android" and clang==0', {
# Disable sincos() optimization to avoid a linker error since
# Android's math library doesn't have sincos(). Either
@@ -282,6 +274,22 @@
}],
],
},
+ 'variables': {
+ 'clang_warning_flags': [
+ # ICU uses its own deprecated functions.
+ '-Wno-deprecated-declarations',
+ # ICU prefers `a && b || c` over `(a && b) || c`.
+ '-Wno-logical-op-parentheses',
+ # ICU has some `unsigned < 0` checks.
+ '-Wno-tautological-compare',
+ # uresdata.c has switch(RES_GET_TYPE(x)) code. The
+ # RES_GET_TYPE macro returns an UResType enum, but some switch
+ # statement contains case values that aren't part of that
+ # enum (e.g. URES_TABLE32 which is in UResInternalType). This
+ # is on purpose.
+ '-Wno-switch',
+ ],
+ },
'cflags': [
# Since ICU wants to internally use its own deprecated APIs,
# don't complain about it.
@@ -339,30 +347,6 @@
}],
],
}],
- ['clang==1', {
- 'xcode_settings': {
- 'WARNING_CFLAGS': [
- # ICU uses its own deprecated functions.
- '-Wno-deprecated-declarations',
- # ICU prefers `a && b || c` over `(a && b) || c`.
- '-Wno-logical-op-parentheses',
- # ICU has some `unsigned < 0` checks.
- '-Wno-tautological-compare',
- # uresdata.c has switch(RES_GET_TYPE(x)) code. The
- # RES_GET_TYPE macro returns an UResType enum, but some switch
- # statement contains case values that aren't part of that
- # enum (e.g. URES_TABLE32 which is in UResInternalType). This
- # is on purpose.
- '-Wno-switch',
- ],
- },
- 'cflags': [
- '-Wno-deprecated-declarations',
- '-Wno-logical-op-parentheses',
- '-Wno-tautological-compare',
- '-Wno-switch',
- ],
- }],
], # conditions
},
], # targets
« 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