Ticket #9884: 0001-math-fix-GCC-4.8-Wunused-local-typedefs-warnings.patch

File 0001-math-fix-GCC-4.8-Wunused-local-typedefs-warnings.patch, 1.9 KB (added by mstahl@…, 9 years ago)
  • include/boost/math/special_functions/fpclassify.hpp

    From 11681e54b1db0da8417a758de920ce4bd6033bed Mon Sep 17 00:00:00 2001
    From: Michael Stahl <mstahl@redhat.com>
    Date: Sun, 13 Apr 2014 23:59:10 +0200
    Subject: [PATCH] math: fix GCC 4.8 -Wunused-local-typedefs warnings
    
    ---
     include/boost/math/special_functions/fpclassify.hpp | 4 ----
     1 file changed, 4 deletions(-)
    
    diff --git a/include/boost/math/special_functions/fpclassify.hpp b/include/boost/math/special_functions/fpclassify.hpp
    index 75f57b0..83132c8 100644
    a b inline bool (isfinite)(long double x)  
    348348{ //!< \brief return true if floating-point type t is finite.
    349349   typedef detail::fp_traits<long double>::type traits;
    350350   typedef traits::method method;
    351    typedef boost::is_floating_point<long double>::type fp_tag;
    352351   typedef long double value_type;
    353352   return detail::isfinite_impl(static_cast<value_type>(x), method());
    354353}
    inline bool (isnormal)(long double x)  
    419418{
    420419   typedef detail::fp_traits<long double>::type traits;
    421420   typedef traits::method method;
    422    typedef boost::is_floating_point<long double>::type fp_tag;
    423421   typedef long double value_type;
    424422   return detail::isnormal_impl(static_cast<value_type>(x), method());
    425423}
    inline bool (isinf)(long double x)  
    508506{
    509507   typedef detail::fp_traits<long double>::type traits;
    510508   typedef traits::method method;
    511    typedef boost::is_floating_point<long double>::type fp_tag;
    512509   typedef long double value_type;
    513510   return detail::isinf_impl(static_cast<value_type>(x), method());
    514511}
    inline bool (isnan)(long double x)  
    594591{ //!< \brief return true if floating-point type t is NaN (Not A Number).
    595592   typedef detail::fp_traits<long double>::type traits;
    596593   typedef traits::method method;
    597    typedef boost::is_floating_point<long double>::type fp_tag;
    598594   return detail::isnan_impl(x, method());
    599595}
    600596#endif