Index: sql/BUILD.gn |
diff --git a/sql/BUILD.gn b/sql/BUILD.gn |
index 7c4d3f0c7cf6b90d07c6cde0259a5772d227e72f..8b75d8009365c16261e704dd5eebb5632cd424b2 100644 |
--- a/sql/BUILD.gn |
+++ b/sql/BUILD.gn |
@@ -21,11 +21,10 @@ component("sql") { |
"transaction.h", |
] |
- defines = [ "SQL_IMPLEMENTATION" ] |
+ # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
+ configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
- if (is_win) { |
- cflags = [ "/wd4267" ] # size_t to int. |
- } |
+ defines = [ "SQL_IMPLEMENTATION" ] |
deps = [ |
"//base", |
@@ -68,9 +67,8 @@ test("sql_unittests") { |
"transaction_unittest.cc", |
] |
- if (is_win) { |
- cflags = [ "/wd4267" ] # size_t -> int |
- } |
+ # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
+ configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
deps = [ |
":sql", |