зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1423649 - Fix compiler errors that happen when building with VS2017 15.5. r=rillian
This commit is contained in:
Родитель
3b3ea3f709
Коммит
01e424a4bc
|
@ -130,7 +130,11 @@ MOZ_END_EXTERN_C
|
|||
/*
|
||||
* Suppress build warning spam (bug 578546).
|
||||
*/
|
||||
#if _MSC_VER < 1912
|
||||
#define MOZALLOC_THROW_IF_HAS_EXCEPTIONS
|
||||
#else
|
||||
#define MOZALLOC_THROW_IF_HAS_EXCEPTIONS throw()
|
||||
#endif
|
||||
#define MOZALLOC_THROW_BAD_ALLOC_IF_HAS_EXCEPTIONS
|
||||
#elif __cplusplus >= 201103
|
||||
/*
|
||||
|
|
|
@ -1039,6 +1039,8 @@ case "$target" in
|
|||
# make 'foo == bar;' error out
|
||||
CFLAGS="$CFLAGS -we4553"
|
||||
CXXFLAGS="$CXXFLAGS -we4553"
|
||||
# Silence VS2017 15.5+ TR1 deprecation warnings hit by older gtest versions
|
||||
CXXFLAGS="$CXXFLAGS -D_SILENCE_TR1_NAMESPACE_DEPRECATION_WARNING"
|
||||
LIBS="$LIBS kernel32.lib user32.lib gdi32.lib winmm.lib wsock32.lib advapi32.lib secur32.lib"
|
||||
MOZ_DEBUG_LDFLAGS='-DEBUG -DEBUGTYPE:CV'
|
||||
WARNINGS_AS_ERRORS='-WX'
|
||||
|
|
Загрузка…
Ссылка в новой задаче