Skip to content

Commit

Permalink
Fix clang unused parameter errors
Browse files Browse the repository at this point in the history
  • Loading branch information
mborland committed Oct 4, 2024
1 parent 9d1de04 commit 1af115d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions include/boost/decimal/detail/cmath/isfinite.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ constexpr auto isfinite BOOST_DECIMAL_PREVENT_MACRO_SUBSTITUTION (T rhs) noexcep
#ifndef BOOST_DECIMAL_FAST_MATH
return !isinf(rhs) && !isnan(rhs);
#else
static_cast<void>(rhs);
return true;
#endif
}
Expand Down
2 changes: 2 additions & 0 deletions include/boost/decimal/detail/cmath/isunordered.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ constexpr auto isunordered(T lhs, T rhs) noexcept
#ifndef BOOST_DECIMAL_FAST_MATH
return isnan(lhs) || isnan(rhs);
#else
static_cast<void>(lhs);
static_cast<void>(rhs);
return false;
#endif
}
Expand Down

0 comments on commit 1af115d

Please sign in to comment.