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

Unified Diff: BUILD.gn

Issue 2571433002: Suppress deprecation warnings in non-clang builds too (Closed)
Patch Set: 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..2771e7b93be15c216abe29b7fe10eb6a7c8d2711 100644
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -79,12 +79,12 @@ config("icu_code") {
} else if (is_linux || is_android) {
cflags += [
"-Wno-unused-function",
+ # ICU uses its own deprecated functions.
+ "-Wno-deprecated-declarations",
]
}
if (is_clang) {
cflags += [
- # ICU uses its own deprecated functions.
- "-Wno-deprecated-declarations",
Nico 2016/12/12 15:00:53 this breaks win/clang builds
tsniatowski 2016/12/12 15:04:21 interesting. this exists already at around line 51
Nico 2016/12/12 15:09:05 Either that, or just keep these two lines here and
# ICU has some code with the pattern:
# if (found = uprv_getWindowsTimeZoneInfo(...))
"-Wno-parentheses",
« 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