Index: third_party/libaddressinput/BUILD.gn |
diff --git a/third_party/libaddressinput/BUILD.gn b/third_party/libaddressinput/BUILD.gn |
index 0c92b5babd60ac15a4365bb5c5c3306a8f1dc493..1307c7163699f581d7f275f0c205ab18df73e0ce 100644 |
--- a/third_party/libaddressinput/BUILD.gn |
+++ b/third_party/libaddressinput/BUILD.gn |
@@ -24,6 +24,12 @@ libaddressinput_util_files = [ |
"src/cpp/src/util/string_util.cc", |
] |
+config("no-newline-eof-warning") { |
+ if (is_clang) { |
+ cflags = [ "-Wno-newline-eof" ] |
+ } |
+} |
+ |
# GYP version: third_party/libaddressinput/libaddressinput.gyp:libaddressinput_strings |
grit("strings") { |
source = "//chrome/app/address_input_strings.grd" |
@@ -85,6 +91,8 @@ grit("strings") { |
"address_input_strings_zh-CN.pak", |
"address_input_strings_zh-TW.pak", |
] |
+ |
+ configs = [ ":no-newline-eof-warning" ] |
} |
config("libaddressinput_config") { |
@@ -109,7 +117,10 @@ static_library("util") { |
sources -= [ "src/cpp/src/util/json.cc" ] |
configs -= [ "//build/config/compiler:chromium_code" ] |
- configs += [ "//build/config/compiler:no_chromium_code" ] |
+ configs += [ |
+ ":no-newline-eof-warning", |
+ "//build/config/compiler:no_chromium_code", |
+ ] |
public_configs = [ ":libaddressinput_config" ] |