Bug 1257346 - Disable C4312 to unblock compilation on VS2015; r?aklotz
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: BgLmpUa09c6
--- a/dom/plugins/ipc/moz.build
+++ b/dom/plugins/ipc/moz.build
@@ -147,8 +147,13 @@ else:
CXXFLAGS += CONFIG['MOZ_GTK2_CFLAGS']
CXXFLAGS += CONFIG['MOZ_CAIRO_CFLAGS']
if CONFIG['_MSC_VER']:
# This is intended as a temporary hack to support building with VS2015.
# conversion from 'X' to 'Y' requires a narrowing conversion
CXXFLAGS += ['-wd4838']
+
+ # 'type cast': conversion from 'unsigned int' to 'HIMC' of greater size
+ SOURCES['PluginInstanceChild.cpp'].flags += ['-wd4312']
+ SOURCES['PluginScriptableObjectChild.cpp'].flags += ['-wd4312']
+