Bug 1256552 - Disable C4577 to unblock compilation on VS2015; r?jrmuizel draft
authorGregory Szorc <gps@mozilla.com>
Mon, 14 Mar 2016 23:14:24 -0700
changeset 340371 426f24657438a08382f44aad65103fa079a04994
parent 340363 3dbcd3c1e6792fbc0ccf3673b8e718e66b8c488c
child 516175 bbf75bc740bf0a876966180267f94418657007fd
push id12951
push usergszorc@mozilla.com
push dateTue, 15 Mar 2016 06:15:07 +0000
reviewersjrmuizel
bugs1256552
milestone48.0a1
Bug 1256552 - Disable C4577 to unblock compilation on VS2015; r?jrmuizel 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: BNhXxMhJaZh
gfx/thebes/moz.build
--- a/gfx/thebes/moz.build
+++ b/gfx/thebes/moz.build
@@ -312,8 +312,12 @@ if CONFIG['MOZ_WIDGET_TOOLKIT'] in ('gtk
 
 LOCAL_INCLUDES += CONFIG['SKIA_INCLUDES']
 
 DEFINES['GRAPHITE2_STATIC'] = True
 
 if CONFIG['CLANG_CXX']:
     # Suppress warnings from Skia header files.
     SOURCES['gfxPlatform.cpp'].flags += ['-Wno-implicit-fallthrough']
+
+if CONFIG['_MSC_VER']:
+    # This is intended as a temporary hack to support building with VS2015.
+    CXXFLAGS += ['-wd4577']
\ No newline at end of file