Bug 1256490 - Disable C4302 to unblock compilation on VS2015; r?bobowen draft
authorGregory Szorc <gps@mozilla.com>
Mon, 14 Mar 2016 17:00:09 -0700
changeset 340066 7ab520fbbc7e8117ef7d7426bab8d4d7982c61b6
parent 340065 a6c7720178a5a9cbcb035a24ae1cc2bb2d4eb9a3
child 340067 2ceac5b0ad26f5e391fae8b099b1c8d4382314d8
push id12902
push usergszorc@mozilla.com
push dateTue, 15 Mar 2016 00:00:31 +0000
reviewersbobowen
bugs1256490
milestone48.0a1
Bug 1256490 - Disable C4302 to unblock compilation on VS2015; r?bobowen 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. But the warning occurs in third party code, so my hands are tied. MozReview-Commit-ID: 6n8nl517Ly
security/sandbox/moz.build
--- a/security/sandbox/moz.build
+++ b/security/sandbox/moz.build
@@ -49,9 +49,10 @@ elif CONFIG['OS_ARCH'] == 'WINNT':
     DISABLE_STL_WRAPPING = True
 
     # Suppress warnings in third-party code.
     if CONFIG['_MSC_VER']:
         CXXFLAGS += [
             '-wd4275', # non dll-interface class exception used as base for dll-interface class
             '-wd4717', # recursive on all control paths, function will cause runtime stack overflow
             '-wd4996', # 'GetVersionExW': was declared deprecated
+            '-wd4302', # 'reinterpret_cast': truncation from 'LPCSTR' to 'WORD'
         ]