diff --git a/solenv/gbuild/platform/com_MSC_defs.mk b/solenv/gbuild/platform/com_MSC_defs.mk index aca825cba84e..5017283a2566 100644 --- a/solenv/gbuild/platform/com_MSC_defs.mk +++ b/solenv/gbuild/platform/com_MSC_defs.mk @@ -184,6 +184,20 @@ gb_CXXFLAGS := \ -Zc:forScope,wchar_t- \ -Zm500 \ +# New warning(s) in Visual Studio 2012, let's try disabling these only +# for that specific compiler version, in case a later one will not +# need them disabled. +ifeq ($(VCVER),110) + +# C4986: 'function': exception specification does not match previous +# declaration. This warning is generated by VS2012 headers (!), and is +# C++-only. + +gb_CXXFLAGS += \ + -wd4986 \ + +endif + gb_STDLIBS := \ advapi32.lib \