Bug 1256545 - Disable C4311 to unblock compilation on VS2015; r?jesup
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: LOiUCH7qfyW
--- a/netwerk/srtp/src/moz.build
+++ b/netwerk/srtp/src/moz.build
@@ -63,8 +63,13 @@ if CONFIG['CPU_ARCH'] in ('x86', 'x86_6
DEFINES['HAVE_X86'] = True
if CONFIG['OS_TARGET'] == 'WINNT':
DEFINES['HAVE_WINSOCK2_H'] = True
DEFINES['inline'] = '__inline'
if CONFIG['GNU_CC']:
CFLAGS += ['-std=gnu99']
+
+if CONFIG['_MSC_VER']:
+ # This is intended as a temporary hack to support building with VS2015.
+ # 'type cast': pointer truncation from '*' to '*'
+ CFLAGS += ['-wd4311']
\ No newline at end of file