From fdbc79d2a8901400e3d1c86d2309d4ba1ff5df26 Mon Sep 17 00:00:00 2001 From: Christian Mazakas Date: Tue, 4 Oct 2022 14:52:38 -0700 Subject: [PATCH] Silence -Werror=terminate warning in move assignment --- include/boost/unordered/detail/foa.hpp | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/include/boost/unordered/detail/foa.hpp b/include/boost/unordered/detail/foa.hpp index 2205d887..e969e67b 100644 --- a/include/boost/unordered/detail/foa.hpp +++ b/include/boost/unordered/detail/foa.hpp @@ -11,6 +11,8 @@ #ifndef BOOST_UNORDERED_DETAIL_FOA_HPP #define BOOST_UNORDERED_DETAIL_FOA_HPP +#include + #include #include #include @@ -1036,6 +1038,11 @@ public: #if defined(BOOST_MSVC) #pragma warning(push) #pragma warning(disable:4297) /* throw inside noexcept function */ +#endif + +#if defined(BOOST_GCC) +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wterminate" #endif table& operator=(table&& x) @@ -1081,6 +1088,10 @@ public: return *this; } +#if defined(BOOST_GCC) +#pragma GCC diagnostic pop +#endif + #if defined(BOOST_MSVC) #pragma warning(pop) /* C4297 */ #endif