diff --git a/include/boost/math/ccmath/isinf.hpp b/include/boost/math/ccmath/isinf.hpp index ecf0d620ab..f5f3f71a2b 100644 --- a/include/boost/math/ccmath/isinf.hpp +++ b/include/boost/math/ccmath/isinf.hpp @@ -25,6 +25,7 @@ constexpr bool isinf BOOST_MATH_PREVENT_MACRO_SUBSTITUTION(T x) noexcept #if defined(__clang_major__) && __clang_major__ >= 6 #pragma clang diagnostic push #pragma clang diagnostic ignored "-Wtautological-constant-compare" +#pragma clang diagnostic ignored "-Wnan-infinity-disabled" #endif return x == std::numeric_limits::infinity() || -x == std::numeric_limits::infinity(); #if defined(__clang_major__) && __clang_major__ >= 6