From d1c719acf7db459016f425eb8018ec4208511578 Mon Sep 17 00:00:00 2001 From: brettw Date: Thu, 19 Feb 2015 15:17:04 -0800 Subject: Update existing uses of /wd4267 to use the GN config This is the size_t to integer conversion warning. Using the config prevents flag duplication and is clearer to read. Minor updates to Win64 build, including some fixes for size_t to int conversions. Review URL: https://codereview.chromium.org/929793006 Cr-Commit-Position: refs/heads/master@{#317162} --- webkit/common/gpu/BUILD.gn | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'webkit') diff --git a/webkit/common/gpu/BUILD.gn b/webkit/common/gpu/BUILD.gn index 43e0a64..35b30bd 100644 --- a/webkit/common/gpu/BUILD.gn +++ b/webkit/common/gpu/BUILD.gn @@ -15,11 +15,11 @@ component("gpu") { ] defines = [ "WEBKIT_GPU_IMPLEMENTATION" ] - configs += [ "//build/config/compiler:wexit_time_destructors" ] - if (is_win) { + configs += [ + "//build/config/compiler:wexit_time_destructors", # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. - cflags = [ "/wd4267" ] - } + "//build/config/compiler:no_size_t_to_int_warning", + ] deps = [ "//base", -- cgit v1.1