Bug 1256535 - Disable C4577 to unblock compilation on VS2015; r?poiru draft
authorGregory Szorc <gps@mozilla.com>
Mon, 14 Mar 2016 21:44:22 -0700
changeset 340318 7bbb54a4b9127b3058aab49d861ccc5ce683746a
parent 340317 c711355adcdfefcc44706ca71a5e227985315fdc
child 516165 beb49e6884e6f3492b4f7a7f34f64636998080c8
push id12939
push usergszorc@mozilla.com
push dateTue, 15 Mar 2016 04:44:47 +0000
reviewerspoiru
bugs1256535
milestone48.0a1
Bug 1256535 - Disable C4577 to unblock compilation on VS2015; r?poiru The previous disabling of this warning on just Key.cpp was not sufficient because another file from the unified sources list appears to include the header exhibiting the warning. MozReview-Commit-ID: rR2XXigTJU
dom/indexedDB/moz.build
--- a/dom/indexedDB/moz.build
+++ b/dom/indexedDB/moz.build
@@ -95,17 +95,17 @@ 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']
+    CXXFLAGS += ['-wd4577']
 
 LOCAL_INCLUDES += [
     '/db/sqlite3/src',
     '/dom/base',
     '/dom/storage',
     '/dom/workers',
     '/ipc/glue',
     '/xpcom/build',