mirror of
https://github.com/boostorg/math.git
synced 2026-01-19 04:22:09 +00:00
Merge pull request #1225 from boostorg/fix_warn
This commit is contained in:
@@ -23,9 +23,11 @@ constexpr bool isinf BOOST_MATH_PREVENT_MACRO_SUBSTITUTION(T x) noexcept
|
||||
if constexpr (std::numeric_limits<T>::is_signed)
|
||||
{
|
||||
#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"
|
||||
# pragma clang diagnostic push
|
||||
# pragma clang diagnostic ignored "-Wtautological-constant-compare"
|
||||
# if __clang_major__ >= 18
|
||||
# pragma clang diagnostic ignored "-Wnan-infinity-disabled"
|
||||
# endif
|
||||
#endif
|
||||
return x == std::numeric_limits<T>::infinity() || -x == std::numeric_limits<T>::infinity();
|
||||
#if defined(__clang_major__) && __clang_major__ >= 6
|
||||
|
||||
Reference in New Issue
Block a user