From a3225e78e27dd716430dd774a0ed2b854a814d68 Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Mon, 14 Jun 2021 14:35:50 +0300 Subject: [PATCH] Update GCC version check --- include/boost/system/detail/error_code.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/boost/system/detail/error_code.hpp b/include/boost/system/detail/error_code.hpp index 497c638..04b4364 100644 --- a/include/boost/system/detail/error_code.hpp +++ b/include/boost/system/detail/error_code.hpp @@ -29,7 +29,7 @@ # include #endif -#if defined(BOOST_GCC) && BOOST_GCC < 70000 +#if defined(BOOST_GCC) && BOOST_GCC >= 40600 && BOOST_GCC < 70000 # pragma GCC diagnostic push # pragma GCC diagnostic ignored "-Wstrict-aliasing" #endif @@ -474,7 +474,7 @@ inline std::size_t hash_value( error_code const & ec ) } // namespace boost -#if defined(BOOST_GCC) && BOOST_GCC < 60000 +#if defined(BOOST_GCC) && BOOST_GCC >= 40600 && BOOST_GCC < 70000 # pragma GCC diagnostic pop #endif