summaryrefslogtreecommitdiffstats
path: root/third_party/libphonenumber/BUILD.gn
diff options
context:
space:
mode:
authorNico Weber <thakis@chromium.org>2015-07-10 14:58:07 -0700
committerNico Weber <thakis@chromium.org>2015-07-10 22:00:21 +0000
commit28bc85d60a219a75f0b283982965c92221678018 (patch)
tree99baa2016d16051587022e70b969d0f46f0caa55 /third_party/libphonenumber/BUILD.gn
parentab031902f8b4b8a0fb9892435f1ccdbad30e89cf (diff)
downloadchromium_src-28bc85d60a219a75f0b283982965c92221678018.zip
chromium_src-28bc85d60a219a75f0b283982965c92221678018.tar.gz
chromium_src-28bc85d60a219a75f0b283982965c92221678018.tar.bz2
clang/win: Take another stab at building with -Wunused-private-field.
BUG=505317 TBR=benwells@chromium.org Review URL: https://codereview.chromium.org/1226373006 . Cr-Commit-Position: refs/heads/master@{#338375}
Diffstat (limited to 'third_party/libphonenumber/BUILD.gn')
-rw-r--r--third_party/libphonenumber/BUILD.gn10
1 files changed, 10 insertions, 0 deletions
diff --git a/third_party/libphonenumber/BUILD.gn b/third_party/libphonenumber/BUILD.gn
index a428292..832cc06 100644
--- a/third_party/libphonenumber/BUILD.gn
+++ b/third_party/libphonenumber/BUILD.gn
@@ -51,6 +51,16 @@ static_library("libphonenumber_without_metadata") {
configs -= [ "//build/config/compiler:chromium_code" ]
configs += [ "//build/config/compiler:no_chromium_code" ]
+ config("libphonenumber_without_metadata_warnings") {
+ if (is_clang) {
+ cflags = [
+ # https://github.com/googlei18n/libphonenumber/pull/741
+ "-Wno-unused-private-field",
+ ]
+ }
+ }
+ configs += [ ":libphonenumber_without_metadata_warnings" ]
+
public_configs = [ ":libphonenumber_config" ]
public_deps = [