Bug 1261719 - Suppress MSVC warning C4595. r=glandium
authorChris Pearce <cpearce@mozilla.com>
Mon, 04 Apr 2016 10:34:22 +1200
changeset 291809 542411a64ac407ec30e83e3db5a6cb4e12b6bf3d
parent 291808 296675bfe330a157e8b3054befee29273e3ac3fb
child 291810 49d26e64c3167e0319b49432a9e1ffae835f5d84
push id30146
push usercbook@mozilla.com
push dateWed, 06 Apr 2016 09:56:58 +0000
treeherdermozilla-central@05ce1f2670ae [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersglandium
bugs1261719
milestone48.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1261719 - Suppress MSVC warning C4595. r=glandium 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. MozReview-Commit-ID: GTzLtIGtpbR
old-configure.in
--- a/old-configure.in
+++ b/old-configure.in
@@ -1463,18 +1463,20 @@ case "$target" in
         # MSVC warning C4345 warns of newly conformant behavior as of VS2003.
         # MSVC warning C4351 warns of newly conformant behavior as of VS2005.
         # MSVC warning C4800 warns when a value is implicitly cast to bool,
         # because this also forces narrowing to a single byte, which can be a
         # perf hit.  But this matters so little in practice (and often we want
         # that behavior) that it's better to turn it off.
         # 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 -wd4244 -wd4267 -wd4819"
-        CXXFLAGS="$CXXFLAGS -wd4251 -wd4244 -wd4267 -wd4345 -wd4351 -wd4800 -wd4819"
+        CXXFLAGS="$CXXFLAGS -wd4251 -wd4244 -wd4267 -wd4345 -wd4351 -wd4800 -wd4819 -wd4595"
         if test -n "$CLANG_CL"; then
             # XXX We should combine some of these with our generic GCC-style
             # warning checks.
             #
             # Suppress the clang-cl warning for the inline 'new' and 'delete' in mozalloc
             CXXFLAGS="$CXXFLAGS -Wno-inline-new-delete"
             # We use offsetof on non-POD objects all the time.
             # We also suppress this warning on other platforms.