Ticket #7429: math-warnings.diff

File math-warnings.diff, 2.2 KB (added by Franz Detro <franz.detro@…>, 5 years ago)
  • boost/math/constants/constants.hpp

    From 3b8288d87406dd582f2fdde56bec92727906f873 Mon Sep 17 00:00:00 2001
    From: Franz Detro <franz.detro@native-instruments.de>
    Date: Tue, 4 Sep 2012 15:09:07 +0200
    Subject: [PATCH] fix warnings in boost math
    
    ---
     boost/math/constants/constants.hpp                | 2 +-
     boost/math/tools/detail/polynomial_horner3_17.hpp | 2 +-
     boost/math/tools/detail/rational_horner3_17.hpp   | 2 +-
     3 files changed, 3 insertions(+), 3 deletions(-)
    
    diff --git a/boost/math/constants/constants.hpp b/boost/math/constants/constants.hpp
    index bb2260e..07410fa 100644
    a b namespace boost{ namespace math 
    183183   { return x; }\
    184184   static inline BOOST_CONSTEXPR T get(const mpl::int_<construct_from_long_double>&)\
    185185   { return BOOST_JOIN(x, L); }\
    186    template <int N> static inline T get(const mpl::int_<N>& n)\
     186   template <int N> static inline T get(const mpl::int_<N>&)\
    187187   {\
    188188      constant_initializer2<T, N, & BOOST_JOIN(constant_, name)<T>::template compute<N> >::force_instantiate();\
    189189      return compute<N>(); \
  • boost/math/tools/detail/polynomial_horner3_17.hpp

    diff --git a/boost/math/tools/detail/polynomial_horner3_17.hpp b/boost/math/tools/detail/polynomial_horner3_17.hpp
    index d6679b3..a714411 100644
    a b  
    1212namespace boost{ namespace math{ namespace tools{ namespace detail{
    1313
    1414template <class T, class V>
    15 inline V evaluate_polynomial_c_imp(const T* a, const V&, const mpl::int_<0>*)
     15inline V evaluate_polynomial_c_imp(const T* /*a*/, const V&, const mpl::int_<0>*)
    1616{
    1717   return static_cast<V>(0);
    1818}
  • boost/math/tools/detail/rational_horner3_17.hpp

    diff --git a/boost/math/tools/detail/rational_horner3_17.hpp b/boost/math/tools/detail/rational_horner3_17.hpp
    index 27523641..c6c5ddf 100644
    a b  
    1212namespace boost{ namespace math{ namespace tools{ namespace detail{
    1313
    1414template <class T, class U, class V>
    15 inline V evaluate_rational_c_imp(const T* a, const U* b, const V&, const mpl::int_<0>*)
     15inline V evaluate_rational_c_imp(const T* /*a*/, const U* /*b*/, const V&, const mpl::int_<0>*)
    1616{
    1717   return static_cast<V>(0);
    1818}