From aaa8a36a7ec20573f8f44a8a3bee24e8a6916887 Mon Sep 17 00:00:00 2001 From: jzmaddock Date: Thu, 24 Sep 2015 11:12:11 +0100 Subject: [PATCH] Fix some gcc-5.1.0 warnings --- include_private/boost/math/tools/remez.hpp | 12 ++++++------ test/test_ibeta_inv.hpp | 4 ++-- test/test_ibeta_inv_ab.hpp | 4 ++-- test/test_igamma.hpp | 2 +- 4 files changed, 11 insertions(+), 11 deletions(-) diff --git a/include_private/boost/math/tools/remez.hpp b/include_private/boost/math/tools/remez.hpp index 5c65afc42..44a3412fc 100644 --- a/include_private/boost/math/tools/remez.hpp +++ b/include_private/boost/math/tools/remez.hpp @@ -261,7 +261,7 @@ void remez_minimax::init_chebyshev() detail::remez_error_function Err(func, this->numerator(), this->denominator(), rel_error); detail::remez_max_error_function Ex(Err); m_max_error = 0; - int max_err_location = 0; + //int max_err_location = 0; for(unsigned i = 0; i < unknowns; ++i) { std::pair r = brent_find_minima(Ex, zeros[i], zeros[i+1], m_precision); @@ -270,7 +270,7 @@ void remez_minimax::init_chebyshev() if(rel_err > m_max_error) { m_max_error = fabs(r.second); - max_err_location = i; + //max_err_location = i; } } control_points = maxima; @@ -583,7 +583,7 @@ T remez_minimax::iterate() // detail::remez_max_error_function Ex(Err); m_max_error = 0; - int max_err_location = 0; + //int max_err_location = 0; for(unsigned i = 0; i < unknowns; ++i) { std::pair r = brent_find_minima(Ex, zeros[i], zeros[i+1], m_precision); @@ -592,7 +592,7 @@ T remez_minimax::iterate() if(rel_err > m_max_error) { m_max_error = fabs(r.second); - max_err_location = i; + //max_err_location = i; } } // @@ -602,7 +602,7 @@ T remez_minimax::iterate() // swap(control_points, maxima); m_max_change = 0; - int max_change_location = 0; + //int max_change_location = 0; for(unsigned i = 0; i < unknowns; ++i) { control_points[i] = (control_points[i] * (100 - m_brake) + maxima[i] * m_brake) / 100; @@ -622,7 +622,7 @@ T remez_minimax::iterate() if(change > m_max_change) { m_max_change = change; - max_change_location = i; + //max_change_location = i; } } // diff --git a/test/test_ibeta_inv.hpp b/test/test_ibeta_inv.hpp index ead21b090..2f41f3437 100644 --- a/test/test_ibeta_inv.hpp +++ b/test/test_ibeta_inv.hpp @@ -27,7 +27,7 @@ template void test_inverses(const T& data) { using namespace std; - typedef typename T::value_type row_type; + //typedef typename T::value_type row_type; typedef Real value_type; value_type precision = static_cast(ldexp(1.0, 1-boost::math::policies::digits >()/2)) * 100; @@ -72,7 +72,7 @@ template void test_inverses2(const T& data, const char* type_name, const char* test_name) { #if !(defined(ERROR_REPORTING_MODE) && !defined(IBETA_INV_FUNCTION_TO_TEST)) - typedef typename T::value_type row_type; + //typedef typename T::value_type row_type; typedef Real value_type; typedef value_type (*pg)(value_type, value_type, value_type); diff --git a/test/test_ibeta_inv_ab.hpp b/test/test_ibeta_inv_ab.hpp index a8dd5816f..995343af2 100644 --- a/test/test_ibeta_inv_ab.hpp +++ b/test/test_ibeta_inv_ab.hpp @@ -34,7 +34,7 @@ template void test_inverses(const T& data) { using namespace std; - typedef typename T::value_type row_type; + //typedef typename T::value_type row_type; typedef Real value_type; value_type precision = static_cast(ldexp(1.0, 1-boost::math::policies::digits >()/2)) * 100; @@ -95,7 +95,7 @@ template void test_inverses2(const T& data, const char* type_name, const char* test_name) { #if !(defined(ERROR_REPORTING_MODE) && !defined(IBETA_INVA_FUNCTION_TO_TEST)) - typedef typename T::value_type row_type; + //typedef typename T::value_type row_type; typedef Real value_type; typedef value_type (*pg)(value_type, value_type, value_type); diff --git a/test/test_igamma.hpp b/test/test_igamma.hpp index d9062fe87..438e467d0 100644 --- a/test/test_igamma.hpp +++ b/test/test_igamma.hpp @@ -196,7 +196,7 @@ void test_spots(T) BOOST_CHECK_CLOSE(::boost::math::gamma_p(static_cast(30), ldexp(T(1), -30)), static_cast(4.460092102072560946444018923090222645613009128135650652e-304L), tolerance); BOOST_CHECK_CLOSE(::boost::math::gamma_p_derivative(static_cast(2), ldexp(T(1), -575)), static_cast(8.08634922390438981326119906687585206568664784377654648227177e-174L), tolerance); - typedef boost::math::policies::policy > throw_policy; + //typedef boost::math::policies::policy > throw_policy; if(std::numeric_limits::max_exponent <= 1024 && std::numeric_limits::has_infinity) {