mirror of
https://github.com/boostorg/system.git
synced 2025-07-29 20:17:13 +02:00
Disable -Wstrict-aliasing on g++ 6 and below
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user