diff --git a/include/boost/system/detail/error_code.hpp b/include/boost/system/detail/error_code.hpp index 66849b4..e434b42 100644 --- a/include/boost/system/detail/error_code.hpp +++ b/include/boost/system/detail/error_code.hpp @@ -29,6 +29,11 @@ # include #endif +#if defined(BOOST_GCC) && BOOST_GCC < 60000 +# pragma GCC diagnostic push +# pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif + namespace boost { @@ -397,4 +402,8 @@ inline std::size_t hash_value( error_code const & ec ) } // namespace boost +#if defined(BOOST_GCC) && BOOST_GCC < 60000 +# pragma GCC diagnostic pop +#endif + #endif // #ifndef BOOST_SYSTEM_DETAIL_ERROR_CODE_HPP_INCLUDED