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