Bug 1256545 - Disable C4311 to unblock compilation on VS2015; r?jesup draft
authorGregory Szorc <gps@mozilla.com>
Mon, 14 Mar 2016 21:41:24 -0700
changeset 340317 c711355adcdfefcc44706ca71a5e227985315fdc
parent 340316 74df24a2a9ec64d35744fb89c0d0c8ba9690c661
child 340318 7bbb54a4b9127b3058aab49d861ccc5ce683746a
push id12938
push usergszorc@mozilla.com
push dateTue, 15 Mar 2016 04:41:37 +0000
reviewersjesup
bugs1256545
milestone48.0a1
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
netwerk/srtp/src/moz.build
--- 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