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

Unified Diff: BUILD.gn

Issue 2571433002: Suppress deprecation warnings in non-clang builds too (Closed)
Patch Set: don't break win-clang, remove cflag redundant with config Created 4 years 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: BUILD.gn
diff --git a/BUILD.gn b/BUILD.gn
index ac6b2bb01f73a9d582e1900ef7255d318e001230..4e9364b7eabd9bf024632f7df41ae66a436fc632 100644
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -83,8 +83,6 @@ config("icu_code") {
}
if (is_clang) {
cflags += [
- # ICU uses its own deprecated functions.
- "-Wno-deprecated-declarations",
# ICU has some code with the pattern:
# if (found = uprv_getWindowsTimeZoneInfo(...))
"-Wno-parentheses",
@@ -94,6 +92,12 @@ config("icu_code") {
"-Wno-unused-function",
]
}
+ if (is_clang || is_linux || is_android) {
+ cflags += [
+ # ICU uses its own deprecated functions.
+ "-Wno-deprecated-declarations",
+ ]
+ }
}
component("icui18n") {
@@ -536,14 +540,6 @@ component("icui18n") {
configs += [ ":icu_code" ]
public_configs = [ ":icu_config" ]
Nico 2016/12/12 15:10:13 Uuuh this isn't good, since this is a public confi
tsniatowski 2016/12/12 15:14:50 icu_code is a nonpublic config here (and everywher
-
- cflags = []
- if (is_android || is_linux) {
- cflags += [
- # ICU uses its own deprecated functions.
- "-Wno-deprecated-declarations",
- ]
- }
}
component("icuuc") {
« 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