summaryrefslogtreecommitdiffstats
path: root/third_party/libxml
diff options
context:
space:
mode:
authorpkasting <pkasting@chromium.org>2015-07-27 15:54:49 -0700
committerCommit bot <commit-bot@chromium.org>2015-07-27 22:55:41 +0000
commitd408e1965f8e03629738039289ab7779c42a318c (patch)
tree0c8dd98f117475c4476393f48504fa579ee5e9b2 /third_party/libxml
parent8d4e4e1d03877db56839e53881cd2c4dfc9ee4b8 (diff)
downloadchromium_src-d408e1965f8e03629738039289ab7779c42a318c.zip
chromium_src-d408e1965f8e03629738039289ab7779c42a318c.tar.gz
chromium_src-d408e1965f8e03629738039289ab7779c42a318c.tar.bz2
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}
Diffstat (limited to 'third_party/libxml')
-rw-r--r--third_party/libxml/BUILD.gn5
1 files changed, 4 insertions, 1 deletions
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