From 4508717de62cd0624e8310545b19aceca110f218 Mon Sep 17 00:00:00 2001 From: Ryan Date: Fri, 18 Aug 2023 16:20:15 -0400 Subject: [PATCH] fix unused abterm1 compile warnings --- .../math/quadrature/detail/exp_sinh_detail.hpp | 2 -- include/boost/math/tools/config.hpp | 17 ----------------- 2 files changed, 19 deletions(-) diff --git a/include/boost/math/quadrature/detail/exp_sinh_detail.hpp b/include/boost/math/quadrature/detail/exp_sinh_detail.hpp index a11a6aeb0c..db4863e7ac 100644 --- a/include/boost/math/quadrature/detail/exp_sinh_detail.hpp +++ b/include/boost/math/quadrature/detail/exp_sinh_detail.hpp @@ -226,7 +226,6 @@ auto exp_sinh_detail::integrate(const F& f, Real* error, Real* L1, auto weight_row = get_weight_row(i); first_j = first_j == 0 ? 0 : 2 * first_j - 1; // appoximate location to start looking for lowest meaningful abscissa value - BOOST_MATH_MAYBE_UNUSED Real abterm1 = 1; std::size_t j = first_j; while (abscissas_row[j] < min_abscissa) ++j; @@ -237,7 +236,6 @@ auto exp_sinh_detail::integrate(const F& f, Real* error, Real* L1, sum += y*weight_row[j]; Real abterm0 = abs(y)*weight_row[j]; absum += abterm0; - abterm1 = abterm0; } I1 += sum*h; diff --git a/include/boost/math/tools/config.hpp b/include/boost/math/tools/config.hpp index 66e7da52ab..8316c0bc78 100644 --- a/include/boost/math/tools/config.hpp +++ b/include/boost/math/tools/config.hpp @@ -146,23 +146,6 @@ # define BOOST_MATH_EXEC_COMPATIBLE #endif -// Attributes from C++14 and newer -#ifdef __has_cpp_attribute - -// C++17 -#if (__cplusplus >= 201703L || _MSVC_LANG >= 201703L) -# if __has_cpp_attribute(maybe_unused) -# define BOOST_MATH_MAYBE_UNUSED [[maybe_unused]] -# endif -#endif - -#endif // Standalone config - -// If attributes are not defined make sure we don't have compiler errors -#ifndef BOOST_MATH_MAYBE_UNUSED -# define BOOST_MATH_MAYBE_UNUSED -#endif - // C++23 #if __cplusplus > 202002L || _MSVC_LANG > 202002L # if __GNUC__ >= 13