Bug 1266809 - Suppress MSVC warning C4595; r=ted

C4595 is "'operator new': non-member operator new or delete functions
may not be declared inline". This warning is already suppressed for newer
versions of clang and is already suppressed in old-configure.in (see
542411a64ac4 and bug 1261719).

MozReview-Commit-ID: 32kFKht8edU

--HG--
extra : rebase_source : f2e0a51a56f4af3923179330f2d479c023e6f6ba
This commit is contained in:
Gregory Szorc 2016-04-22 10:43:20 -07:00
parent f7a19af3e7
commit eed0d17b12

View File

@ -208,8 +208,10 @@ case "$target" in
# secure CRT functions.
# MSVC warning C4819 warns some UTF-8 characters (e.g. copyright sign)
# on non-Western system locales even if it is in a comment.
# MSVC warning wd4595 warns non-member operator new or delete functions
# may not be declared inline, as of VS2015 Update 2.
CFLAGS="$CFLAGS -wd4819"
CXXFLAGS="$CXXFLAGS -wd4345 -wd4351 -wd4800 -wd4819 -D_CRT_SECURE_NO_WARNINGS"
CXXFLAGS="$CXXFLAGS -wd4345 -wd4351 -wd4800 -wd4819 -wd4595 -D_CRT_SECURE_NO_WARNINGS"
AC_LANG_SAVE
AC_LANG_C
AC_TRY_COMPILE([#include <stdio.h>],