Bug 1256502 - Disable C4319 to unblock compilation on VS2015; r?jmuizelaar draft
authorGregory Szorc <gps@mozilla.com>
Mon, 14 Mar 2016 17:51:13 -0700
changeset 340306 aa78e1892cb0f8a45a715345326f3c5988624967
parent 340305 c4c20642d0747cf96d1c7ffc0ea8e0920ae0d73f
child 340307 ece696552678ab97663a0b1e5b031fedcf4a4e4a
push id12938
push usergszorc@mozilla.com
push dateTue, 15 Mar 2016 04:41:37 +0000
reviewersjmuizelaar
bugs1256502
milestone48.0a1
Bug 1256502 - Disable C4319 to unblock compilation on VS2015; r?jmuizelaar As part of unblocking building with VS2015u1 in automation, I'm mass disabling compiler warnings that are turned into errors. This is not the preferred mechanism to fix compilation warnings. So hopefully this patch never lands because someone insists of fixing the underlying problem instead. But if it does land, hopefully the workaround is only temporary. MozReview-Commit-ID: 4eBICvkzErY
gfx/ipc/moz.build
--- a/gfx/ipc/moz.build
+++ b/gfx/ipc/moz.build
@@ -36,8 +36,13 @@ include('/ipc/chromium/chromium-config.m
 
 FINAL_LIBRARY = 'xul'
 
 CXXFLAGS += CONFIG['MOZ_CAIRO_CFLAGS']
 CXXFLAGS += CONFIG['TK_CFLAGS']
 
 if CONFIG['GNU_CXX']:
     CXXFLAGS += ['-Wshadow']
+
+if CONFIG['_MSC_VER']:
+    # This is intended as a temporary hack to support building with VS2015.
+    # '~': zero extending 'uint32_t' to 'size_t' of greater size
+    CXXFLAGS += ['-wd4319']