2
0
mirror of https://github.com/boostorg/odeint.git synced 2026-01-19 04:22:12 +00:00

Fix GCC-7 -Wmaybe-uninitialized

This commit is contained in:
Matt Borland
2023-12-19 11:54:04 +01:00
parent 53d2ceb8d9
commit b7955fd5e2
5 changed files with 46 additions and 0 deletions

View File

@@ -21,6 +21,11 @@
#pragma warning(disable:4996)
#endif
#if defined(__GNUC__) && __GNUC__ >= 7
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wmaybe-uninitialized"
#endif
#define BOOST_TEST_MODULE odeint_generic_error_stepper
#include <iostream>
@@ -106,3 +111,7 @@ BOOST_AUTO_TEST_CASE( test_generic_error_stepper )
}
BOOST_AUTO_TEST_SUITE_END()
#if defined(__GNUC__) && __GNUC__ >= 7
#pragma GCC diagnostic pop
#endif

View File

@@ -20,6 +20,11 @@
#pragma warning(disable:4996)
#endif
#if defined(__GNUC__) && __GNUC__ >= 7
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wmaybe-uninitialized"
#endif
#define BOOST_TEST_MODULE odeint_generic_stepper
#include <iostream>
@@ -99,3 +104,7 @@ BOOST_AUTO_TEST_CASE( test_generic_stepper )
}
BOOST_AUTO_TEST_SUITE_END()
#if defined(__GNUC__) && __GNUC__ >= 7
#pragma GCC diagnostic pop
#endif

View File

@@ -20,6 +20,11 @@
#pragma warning(disable:4996)
#endif
#if defined(__GNUC__) && __GNUC__ >= 7
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wmaybe-uninitialized"
#endif
#define BOOST_TEST_MODULE odeint_regression_147
#include <utility>
@@ -86,3 +91,7 @@ BOOST_AUTO_TEST_CASE_TEMPLATE( init_test , InitStepper,
}
BOOST_AUTO_TEST_SUITE_END()
#if defined(__GNUC__) && __GNUC__ >= 7
#pragma GCC diagnostic pop
#endif

View File

@@ -20,6 +20,11 @@
#pragma warning(disable:4996)
#endif
#if defined(__GNUC__) && __GNUC__ >= 7
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wmaybe-uninitialized"
#endif
#define BOOST_TEST_MODULE odeint_resize
#include <vector>
@@ -109,3 +114,8 @@ BOOST_AUTO_TEST_CASE_TEMPLATE( test_resize , T, resize_check_types )
BOOST_AUTO_TEST_SUITE_END()
#if defined(__GNUC__) && __GNUC__ >= 7
#pragma GCC diagnostic pop
#endif

View File

@@ -22,6 +22,11 @@
#pragma warning(disable:4996)
#endif
#if defined(__GNUC__) && __GNUC__ >= 7
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wmaybe-uninitialized"
#endif
#define BOOST_TEST_MODULE odeint_trivial_state
#include <boost/test/unit_test.hpp>
@@ -107,3 +112,7 @@ BOOST_AUTO_TEST_CASE_TEMPLATE( test_integrate , T , error_stepper_types )
}
BOOST_AUTO_TEST_SUITE_END()
#if defined(__GNUC__) && __GNUC__ >= 7
#pragma GCC diagnostic pop
#endif