mirror of
https://github.com/boostorg/system.git
synced 2025-07-30 12:37:13 +02:00
Disable -Wstrict-aliasing on g++ 6 and below
This commit is contained in:
@ -29,6 +29,11 @@
|
|||||||
# include <system_error>
|
# include <system_error>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if defined(BOOST_GCC) && BOOST_GCC < 60000
|
||||||
|
# pragma GCC diagnostic push
|
||||||
|
# pragma GCC diagnostic ignored "-Wstrict-aliasing"
|
||||||
|
#endif
|
||||||
|
|
||||||
namespace boost
|
namespace boost
|
||||||
{
|
{
|
||||||
|
|
||||||
@ -397,4 +402,8 @@ inline std::size_t hash_value( error_code const & ec )
|
|||||||
|
|
||||||
} // namespace boost
|
} // namespace boost
|
||||||
|
|
||||||
|
#if defined(BOOST_GCC) && BOOST_GCC < 60000
|
||||||
|
# pragma GCC diagnostic pop
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif // #ifndef BOOST_SYSTEM_DETAIL_ERROR_CODE_HPP_INCLUDED
|
#endif // #ifndef BOOST_SYSTEM_DETAIL_ERROR_CODE_HPP_INCLUDED
|
||||||
|
Reference in New Issue
Block a user