Bug 1256535 - Disable C4577 to unblock compilation on VS2015; r?poiru draft
authorGregory Szorc <gps@mozilla.com>
Mon, 14 Mar 2016 21:24:54 -0700
changeset 340298 e9e8a735511af83ff6094bb7f914717a4449765c
parent 340297 ec5c0a4eba3d89d5f27e9e9b532639b71e328bde
child 516163 6c58d2c4ffcc383156556a2eaa2e5d60b877576f
push id12936
push usergszorc@mozilla.com
push dateTue, 15 Mar 2016 04:25:22 +0000
reviewerspoiru
bugs1256535
milestone48.0a1
Bug 1256535 - Disable C4577 to unblock compilation on VS2015; r?poiru 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 of fixing the underlying problem instead. But if it does land, hopefully the workaround is only temporary. MozReview-Commit-ID: CnmHTfEZpBK
dom/indexedDB/moz.build
--- a/dom/indexedDB/moz.build
+++ b/dom/indexedDB/moz.build
@@ -93,16 +93,20 @@ include('/ipc/chromium/chromium-config.m
 
 FINAL_LIBRARY = 'xul'
 
 if CONFIG['GNU_CC']:
     # Suppress gcc warning about a comparison being always false due to the
     # range of the data type
     SOURCES['Key.cpp'].flags += ['-Wno-error=type-limits']
 
+if CONFIG['_MSC_VER']:
+    # This is intended as a temporary hack to support building with VS2015.
+    SOURCES['Key.cpp'].flags += ['-wd4577']
+
 LOCAL_INCLUDES += [
     '/db/sqlite3/src',
     '/dom/base',
     '/dom/storage',
     '/dom/workers',
     '/ipc/glue',
     '/xpcom/build',
     '/xpcom/threads',