mirror of
https://github.com/boostorg/system.git
synced 2025-07-30 04:27:14 +02:00
Suppress incorrect warnings from GCC 7/8
This commit is contained in:
@ -27,6 +27,11 @@ namespace system
|
|||||||
|
|
||||||
// throw_exception_from_error
|
// throw_exception_from_error
|
||||||
|
|
||||||
|
#if defined(__GNUC__) && __GNUC__ >= 7 && __GNUC__ <= 8
|
||||||
|
# pragma GCC diagnostic push
|
||||||
|
# pragma GCC diagnostic ignored "-Wattributes"
|
||||||
|
#endif
|
||||||
|
|
||||||
BOOST_NORETURN BOOST_NOINLINE inline void throw_exception_from_error( error_code const & e )
|
BOOST_NORETURN BOOST_NOINLINE inline void throw_exception_from_error( error_code const & e )
|
||||||
{
|
{
|
||||||
boost::throw_exception( system_error( e ) );
|
boost::throw_exception( system_error( e ) );
|
||||||
@ -37,6 +42,10 @@ BOOST_NORETURN BOOST_NOINLINE inline void throw_exception_from_error( std::error
|
|||||||
boost::throw_exception( std::system_error( e ) );
|
boost::throw_exception( std::system_error( e ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if defined(__GNUC__) && __GNUC__ >= 7 && __GNUC__ <= 8
|
||||||
|
# pragma GCC diagnostic pop
|
||||||
|
#endif
|
||||||
|
|
||||||
// in_place_*
|
// in_place_*
|
||||||
|
|
||||||
using in_place_value_t = variant2::in_place_index_t<0>;
|
using in_place_value_t = variant2::in_place_index_t<0>;
|
||||||
|
Reference in New Issue
Block a user