Bug 1256552 - Disable C4577 to unblock compilation on VS2015; r=jrmuizel
authorGregory Szorc <gps@mozilla.com>
Wed, 23 Mar 2016 16:39:56 -0700
changeset 290135 abc466f526d949eaef90e5cbe8de6527ced2c69d
parent 290134 c26f9e1dbad7eef1d74ec2e1c7c6aa7fe023a501
child 290136 1cca90a25cbbcdb0d4c8616f4104d4d1a993a025
push id74119
push usergszorc@mozilla.com
push dateWed, 23 Mar 2016 23:56:20 +0000
treeherdermozilla-inbound@abc466f526d9 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjrmuizel
bugs1256552
milestone48.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
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
@@ -307,8 +307,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