From af1dc841609c980cd76f8e3c5db486d69073214b Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Mon, 4 Mar 2019 16:35:35 +0200 Subject: [PATCH] Disable -Wnon-virtual-dtor --- include/boost/system/error_code.hpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/include/boost/system/error_code.hpp b/include/boost/system/error_code.hpp index 93899df..b9c590d 100644 --- a/include/boost/system/error_code.hpp +++ b/include/boost/system/error_code.hpp @@ -155,6 +155,10 @@ template<> struct is_error_condition_enum }; // class error_category +#if defined( BOOST_GCC ) || defined( BOOST_CLANG ) +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wnon-virtual-dtor" +#endif #ifdef BOOST_MSVC #pragma warning( push ) @@ -314,6 +318,10 @@ public: } // namespace detail +#if defined( BOOST_GCC ) || defined( BOOST_CLANG ) +#pragma GCC diagnostic pop +#endif + // generic_category(), system_category() #if defined(BOOST_SYSTEM_HAS_CONSTEXPR)