diff options
author | Martin Hořeňovský <martin.horenovsky@gmail.com> | 2020-02-03 10:05:17 +0100 |
---|---|---|
committer | Martin Hořeňovský <martin.horenovsky@gmail.com> | 2020-02-03 10:05:23 +0100 |
commit | 2652bb86e3f72292951dfb5ad272a7c0a018118c (patch) | |
tree | 661d2d1bd82061d6881f84e4b40eea4e055ac3fa | |
parent | f96e89e016802fb219c9158ac74a21f3aae6abc9 (diff) | |
download | catch2-2652bb86e3f72292951dfb5ad272a7c0a018118c.tar.gz |
Cleanup nextafter workaround
-rw-r--r-- | include/internal/catch_matchers_floating.cpp | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/include/internal/catch_matchers_floating.cpp b/include/internal/catch_matchers_floating.cpp index c226fc56..bcca0725 100644 --- a/include/internal/catch_matchers_floating.cpp +++ b/include/internal/catch_matchers_floating.cpp @@ -59,16 +59,8 @@ namespace { return static_cast<uint64_t>(ulpDiff) <= maxUlpDiff; } -} //end anonymous namespace - #if defined(CATCH_CONFIG_GLOBAL_NEXTAFTER) -#if defined(__clang__) -#pragma clang diagnostic push -// The long double overload is currently unused -#pragma clang diagnostic ignored "-Wunused-function" -#endif - float nextafter(float x, float y) { return ::nextafterf(x, y); } @@ -77,18 +69,8 @@ namespace { return ::nextafter(x, y); } - long double nextafter(long double x, long double y) { - return ::nextafterl(x, y); - } - -#if defined(__clang__) -#pragma clang diagnostic pop -#endif - #endif // ^^^ CATCH_CONFIG_GLOBAL_NEXTAFTER ^^^ -namespace { - template <typename FP> FP step(FP start, FP direction, uint64_t steps) { for (uint64_t i = 0; i < steps; ++i) { |