From 1df9c878531e67ecdba9c94cf8740fd29d6f10fb Mon Sep 17 00:00:00 2001 From: Nathan Froyd Date: Mon, 18 Nov 2019 13:04:27 +0000 Subject: [PATCH] Bug 1596807 - turn off more exception spec mismatch warnings on Windows; r=dmajor Differential Revision: https://phabricator.services.mozilla.com/D53218 --HG-- extra : moz-landing-system : lando --- js/src/old-configure.in | 4 ++++ old-configure.in | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/js/src/old-configure.in b/js/src/old-configure.in index 83e13a72ee6e..f8d787a03158 100644 --- a/js/src/old-configure.in +++ b/js/src/old-configure.in @@ -631,6 +631,10 @@ case "$target" in # declare |delete| differently. Therefore, suppress this # warning. CXXFLAGS="$CXXFLAGS -Wno-implicit-exception-spec-mismatch" + # Macros like STDMETHOD() and IFACEMETHOD() can declare + # __attribute__((nothrow)) on their respective method declarations, + # while the definitions are left without the matching attribute. + CXXFLAGS="$CXXFLAGS -Wno-microsoft-exception-spec" # At least one MSVC header and several headers in-tree have # unused typedefs, so turn this on. CXXFLAGS="$CXXFLAGS -Wno-unused-local-typedef" diff --git a/old-configure.in b/old-configure.in index 20516e355e37..04d8a99bfc7a 100644 --- a/old-configure.in +++ b/old-configure.in @@ -762,6 +762,10 @@ case "$target" in # declare |delete| differently. Therefore, suppress this # warning. CXXFLAGS="$CXXFLAGS -Wno-implicit-exception-spec-mismatch" + # Macros like STDMETHOD() and IFACEMETHOD() can declare + # __attribute__((nothrow)) on their respective method declarations, + # while the definitions are left without the matching attribute. + CXXFLAGS="$CXXFLAGS -Wno-microsoft-exception-spec" # At least one MSVC header and several headers in-tree have # unused typedefs, so turn this on. CXXFLAGS="$CXXFLAGS -Wno-unused-local-typedef"