mirror of
https://github.com/boostorg/odeint.git
synced 2026-01-19 04:22:12 +00:00
Fix version of -Wpessimizing-move
This commit is contained in:
@@ -41,6 +41,11 @@ using namespace boost::numeric::odeint;
|
||||
typedef dummy_stepper::state_type state_type;
|
||||
typedef dummy_stepper::value_type value_type;
|
||||
|
||||
#if defined(__GNUC__) && __GNUC__ >= 5
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wmaybe-uninitialized"
|
||||
#endif
|
||||
|
||||
BOOST_AUTO_TEST_SUITE( adaptive_iterator_test )
|
||||
|
||||
typedef mpl::vector<
|
||||
@@ -48,11 +53,6 @@ typedef mpl::vector<
|
||||
, dummy_dense_output_stepper
|
||||
> dummy_steppers;
|
||||
|
||||
#if defined(__GNUC__) && __GNUC__ >= 5
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wmaybe-uninitialized"
|
||||
#endif
|
||||
|
||||
BOOST_AUTO_TEST_CASE( copy_controlled_stepper_iterator )
|
||||
{
|
||||
typedef adaptive_iterator< dummy_controlled_stepper , empty_system , state_type > iterator_type;
|
||||
@@ -76,10 +76,6 @@ BOOST_AUTO_TEST_CASE( copy_controlled_stepper_iterator )
|
||||
|
||||
}
|
||||
|
||||
#if defined(__GNUC__) && __GNUC__ >= 5
|
||||
#pragma GCC diagnostic pop
|
||||
#endif
|
||||
|
||||
BOOST_AUTO_TEST_CASE( copy_dense_output_stepper_iterator )
|
||||
{
|
||||
typedef adaptive_iterator< dummy_dense_output_stepper , empty_system , state_type > iterator_type;
|
||||
@@ -352,3 +348,7 @@ BOOST_AUTO_TEST_CASE_TEMPLATE( copy_algorithm_with_range_factory , Stepper , dum
|
||||
|
||||
|
||||
BOOST_AUTO_TEST_SUITE_END()
|
||||
|
||||
#if defined(__GNUC__) && __GNUC__ >= 5
|
||||
#pragma GCC diagnostic pop
|
||||
#endif
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
#endif
|
||||
|
||||
// Stems from Boost.Multiprecision
|
||||
#if defined(__GNUC__) && __GNUC__ >= 5
|
||||
#if defined(__GNUC__) && __GNUC__ >= 9
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wpessimizing-move"
|
||||
#endif
|
||||
@@ -140,6 +140,6 @@ BOOST_AUTO_TEST_CASE( test_rosenbrock4_copy_dense_output )
|
||||
|
||||
BOOST_AUTO_TEST_SUITE_END()
|
||||
|
||||
#if defined(__GNUC__) && __GNUC__ >= 5
|
||||
#if defined(__GNUC__) && __GNUC__ >= 9
|
||||
#pragma GCC diagnostic pop
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user