Disable -Wstrict-aliasing on g++ 6 and below

This commit is contained in:
Peter Dimov
2021-06-14 02:15:37 +03:00
parent 9dc13fd82a
commit 5b1909eba4

View File

@ -29,6 +29,11 @@
# include <system_error>
#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