Index: media/BUILD.gn |
diff --git a/media/BUILD.gn b/media/BUILD.gn |
index d9e2399a57a3a42dc82af90fd2525ab789c4634e..b2c6ed0a1ce4d010091a7cddb76fd863f65c8609 100644 |
--- a/media/BUILD.gn |
+++ b/media/BUILD.gn |
@@ -252,7 +252,12 @@ component("media") { |
"formats/webm/webm_webvtt_parser.h", |
] |
- configs += [ ":media_config" ] |
+ configs += [ |
+ ":media_config", |
+ # TODO(wolenetz): Fix size_t to int trunctaion in win64. |
+ # See http://crbug.com/171009 |
+ "//build/config/compiler:no_size_t_to_int_warning", |
+ ] |
all_dependent_configs = [ ":media_dependent_config" ] |
cflags = [] |
@@ -394,8 +399,6 @@ component("media") { |
"mfreadwrite.lib", |
"mfuuid.lib", |
] |
- cflags += [ "/wd4267" ] # TODO(wolenetz): Fix size_t to int trunctaion in win64. See |
- # http://crbug.com/171009 |
} |
if (proprietary_codecs) { |
@@ -579,6 +582,10 @@ test("media_unittests") { |
"formats/webm/webm_webvtt_parser_unittest.cc", |
] |
+ # TODO(wolenetz): Fix size_t to int trunctaion in win64. |
+ # See http://crbug.com/171009 |
+ configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
+ |
deps = [ |
":media", |
":test_support", |
@@ -649,11 +656,6 @@ test("media_unittests") { |
] |
} |
- if (is_win && cpu_arch == "x64") { |
- cflags = [ "/wd4267" ] # TODO(wolenetz): Fix size_t to int trunctaion in win64. See |
- # http://crbug.com/171009 |
- } |
- |
if (is_mac || is_ios) { |
deps += [ "//media/base/mac" ] |
} |