Skip to content

Commit

Permalink
Bug 1423649 - Fix compiler errors that happen when building with VS20…
Browse files Browse the repository at this point in the history
…17 15.5. r=rillian
  • Loading branch information
rvandermeulen committed Dec 8, 2017
1 parent 3b3ea3f commit 01e424a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions memory/mozalloc/mozalloc.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
/*
Expand Down
2 changes: 2 additions & 0 deletions old-configure.in
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit 01e424a

Please sign in to comment.