Bug 1256530 - Disable C4312 to unblock compilation on VS2015; r?smaug
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 on fixing the underlying
problem instead. But if it does land, hopefully the workaround is
only temporary.
MozReview-Commit-ID: BXytOjiy0uX
--- a/parser/html/moz.build
+++ b/parser/html/moz.build
@@ -95,8 +95,13 @@ FINAL_LIBRARY = 'xul'
# DEFINES['ENABLE_VOID_MENUITEM'] = True
LOCAL_INCLUDES += [
'/dom/base',
]
if CONFIG['CLANG_CXX']:
CXXFLAGS += ['-Wno-implicit-fallthrough']
+
+if CONFIG['_MSC_VER']:
+ # This is intended as a temporary hack to support building with VS2015.
+ # 'type cast': conversion from 'unsigned int' to 'nsIContent *' of greater size
+ CXXFLAGS += ['-wd4312']