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: third_party/cld_2/BUILD.gn

Issue 1215643003: Remove -Wno-unused-private-field clang warning suppression. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Feedback Created 5 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
Index: third_party/cld_2/BUILD.gn
diff --git a/third_party/cld_2/BUILD.gn b/third_party/cld_2/BUILD.gn
index a401bcc7e7040653029ec3681fa5c991b711329f..9789c763db48ba8a6745290d31d2ce16edf38843 100644
--- a/third_party/cld_2/BUILD.gn
+++ b/third_party/cld_2/BUILD.gn
@@ -80,6 +80,15 @@ source_set("cld2_platform_impl") {
}
}
+config("cld2_warnings") {
+ if (is_clang) {
+ cflags = [
+ # cld_2 has unused private fields.
+ "-Wno-unused-private-field",
+ ]
+ }
+}
+
static_library("cld2_static") {
sources = gypi_values.cld2_core_impl_sources
include_dirs = [
@@ -92,7 +101,10 @@ static_library("cld2_static") {
":cld2_data",
]
configs -= [ "//build/config/compiler:chromium_code" ]
- configs += [ "//build/config/compiler:no_chromium_code" ]
+ configs += [
+ "//build/config/compiler:no_chromium_code",
+ ":cld2_warnings",
brettw 2015/07/09 18:03:07 This should go first.
Nico 2015/07/09 18:18:46 No, it needs be be after no_chromium_code so that
+ ]
}
config("cld2_dynamic_mode_config") {
@@ -111,6 +123,7 @@ static_library("cld2_dynamic") {
configs += [
":cld2_dynamic_mode_config",
"//build/config/compiler:no_chromium_code",
+ ":cld2_warnings",
brettw 2015/07/09 18:03:07 Ditto
Nico 2015/07/09 18:18:46 Ditto.
]
}

Powered by Google App Engine
This is Rietveld 408576698