From 8da9a776ffad5deae3bb0d0be7d35d62978bff80 Mon Sep 17 00:00:00 2001 From: Mohammad Nejati Date: Fri, 31 May 2024 19:11:35 +0000 Subject: [PATCH] Suppress -Wnoexcept-type warnings --- include/boost/beast/_experimental/unit_test/suite.hpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/include/boost/beast/_experimental/unit_test/suite.hpp b/include/boost/beast/_experimental/unit_test/suite.hpp index 68daeac6..b82eb539 100644 --- a/include/boost/beast/_experimental/unit_test/suite.hpp +++ b/include/boost/beast/_experimental/unit_test/suite.hpp @@ -16,6 +16,11 @@ #include #include +#if defined(BOOST_GCC) && BOOST_GCC >= 70000 && BOOST_GCC < 80000 +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wnoexcept-type" +#endif + namespace boost { namespace beast { namespace unit_test { @@ -731,6 +736,10 @@ run(runner& r) #endif +#if defined(BOOST_GCC) && BOOST_GCC >= 70000 && BOOST_GCC < 80000 +#pragma GCC diagnostic pop +#endif + //------------------------------------------------------------------------------ #endif