From d408e1965f8e03629738039289ab7779c42a318c Mon Sep 17 00:00:00 2001 From: pkasting Date: Mon, 27 Jul 2015 15:54:49 -0700 Subject: Enable C4018 globally for the GN build, and disable per-target. This matches what the GYP build does. BUG=398202 TEST=none Review URL: https://codereview.chromium.org/1246103007 Cr-Commit-Position: refs/heads/master@{#340590} --- third_party/libxml/BUILD.gn | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'third_party/libxml') diff --git a/third_party/libxml/BUILD.gn b/third_party/libxml/BUILD.gn index 1f10dee..58a5f1c 100644 --- a/third_party/libxml/BUILD.gn +++ b/third_party/libxml/BUILD.gn @@ -155,7 +155,10 @@ static_library("libxml") { ] if (is_win) { - cflags_c = [ "/wd4101" ] # Unreferenced local variable. + cflags_c = [ + "/wd4018", # Signed/unsigned mismatch in comparison. + "/wd4101", # Unreferenced local variable. + ] } else if (is_mac || is_ios || is_android) { # http://www.xmlsoft.org/threads.html says that this is required when using # libxml from several threads, which can possibly happen in chrome. On -- cgit v1.1