From 6656bbc3295d77d7ab4a1d2e9f5377446b698f46 Mon Sep 17 00:00:00 2001 From: Scott Rohde Date: Thu, 8 Feb 2024 19:48:16 -0600 Subject: [PATCH 1/2] Attempt to get rid of deprecation warnings on windows-latest and macos-latest (for R release versions). --- ode_solver.h | 5 +++++ ode_solver_library/boost_ode_solvers.h | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/ode_solver.h b/ode_solver.h index cb3c04c..6f38b4e 100644 --- a/ode_solver.h +++ b/ode_solver.h @@ -2,7 +2,12 @@ #define ODE_SOLVER_H #include + +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wdeprecated-declarations" #include // For use with ODEINT +#pragma GCC diagnostic pop + #include "state_map.h" #include "dynamical_system.h" diff --git a/ode_solver_library/boost_ode_solvers.h b/ode_solver_library/boost_ode_solvers.h index c264bfc..ced4588 100644 --- a/ode_solver_library/boost_ode_solvers.h +++ b/ode_solver_library/boost_ode_solvers.h @@ -1,7 +1,11 @@ #ifndef BOOST_ODE_SOLVERS_H #define BOOST_ODE_SOLVERS_H +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wdeprecated-declarations" #include +#pragma GCC diagnostic pop + #include "../ode_solver.h" #include "../dynamical_system_caller.h" #include "../state_map.h" // for state_vector_map From ee9f6cdc3995f9cb3249e1cae04f9e73e9164a15 Mon Sep 17 00:00:00 2001 From: Scott Rohde Date: Tue, 13 Feb 2024 11:48:21 -0600 Subject: [PATCH 2/2] Added note about addition of pragmas. --- NEWS.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/NEWS.md b/NEWS.md index 3f7c2f3..3fb5c41 100644 --- a/NEWS.md +++ b/NEWS.md @@ -16,6 +16,12 @@ Subsequent commits will then include a new "Unreleased" section in preparation for the next release. --> +# Unreleased + +- Added pragmas to two C++ source code files to suppress warnings + about deprecated declarations in the Boost library code when C++17 + is used for compilation. + # BioCro C++ Framework VERSION 1.1.3 - Replaced `fabs` by `std::abs` in `quadratic_root.cpp` and