Skip to content

Commit

Permalink
Merge pull request #1225 from boostorg/fix_warn
Browse files Browse the repository at this point in the history
  • Loading branch information
mborland authored Dec 19, 2024
2 parents d026468 + b101f10 commit 52b029f
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions include/boost/math/ccmath/isinf.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 52b029f

Please sign in to comment.