| Index: base/BUILD.gn
|
| diff --git a/base/BUILD.gn b/base/BUILD.gn
|
| index 06b17e990b9bc20101c54949a224f0571e436a72..b00615cbb957f900892957f61a7de91e3513989f 100644
|
| --- a/base/BUILD.gn
|
| +++ b/base/BUILD.gn
|
| @@ -864,7 +864,7 @@ component("base") {
|
| ]
|
|
|
| # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
|
| - cflags = [ "/wd4267" ]
|
| + configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
|
|
|
| libs = [
|
| "cfgmgr32.lib",
|
| @@ -1023,10 +1023,8 @@ component("i18n") {
|
| configs += [ "//build/config/compiler:optimize_max" ]
|
| }
|
|
|
| - if (is_win) {
|
| - # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
|
| - cflags = [ "/wd4267" ]
|
| - }
|
| + # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
|
| + configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
|
| }
|
|
|
| source_set("prefs") {
|
| @@ -1428,10 +1426,8 @@ test("base_unittests") {
|
| set_sources_assignment_filter(sources_assignment_filter)
|
| }
|
|
|
| - if (is_win) {
|
| - # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
|
| - cflags = [ "/wd4267" ]
|
| - }
|
| + # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
|
| + configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
|
| }
|
|
|
| if (is_android) {
|
|
|