Skip to content

Commit

Permalink
Fix check for clang warning -Wnan-infinity-disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
pps83 committed Jan 23, 2025
1 parent 2f3c798 commit dfa0bd6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions include/boost/math/ccmath/isinf.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,10 @@ 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"
# if __clang_major__ >= 18
# pragma clang diagnostic ignored "-Wnan-infinity-disabled"
# if defined(__has_warning)
# if __has_warning("-Wnan-infinity-disabled")
# pragma clang diagnostic ignored "-Wnan-infinity-disabled"
# endif
# endif
#endif
return x == std::numeric_limits<T>::infinity() || -x == std::numeric_limits<T>::infinity();
Expand Down

0 comments on commit dfa0bd6

Please sign in to comment.