Index: third_party/libphonenumber/BUILD.gn |
diff --git a/third_party/libphonenumber/BUILD.gn b/third_party/libphonenumber/BUILD.gn |
index a428292e196cdb08403245d14ccf94be4b63bc6e..832cc06dcb6b7ab89fea542fbec1975ef952d719 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 = [ |