Bug 1242005 - Disable C4359 to allow compilation on VS2015; r?kip
The proper fix is to fix the underlying problem. However, I haven't
touched C++ in months and I'm lazy. So I'm going for the quick fix
so Visual Studio 2015 rollout is unblocked.
MozReview-Commit-ID: 14cZCGPkx0V
--- a/gfx/vr/moz.build
+++ b/gfx/vr/moz.build
@@ -52,8 +52,14 @@ CFLAGS += CONFIG['MOZ_CAIRO_CFLAGS']
CFLAGS += CONFIG['TK_CFLAGS']
include('/ipc/chromium/chromium-config.mozbuild')
FINAL_LIBRARY = 'xul'
if CONFIG['GNU_CXX']:
CXXFLAGS += ['-Wshadow']
+
+# This is intended as a temporary hack to enable VS2015 builds.
+if CONFIG['_MSC_VER']:
+ # ovr_capi_dynamic.h '<unnamed-tag>': Alignment specifier is less than
+ # actual alignment (8), and will be ignored
+ CXXFLAGS += ['-wd4359']