Skip to content

Commit b817948

Browse files
committed
Disable deprecation warning for has_denorm in hash_float_test.hpp
1 parent edd4362 commit b817948

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test/hash_float_test.hpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,11 @@
3333
#pragma GCC diagnostic ignored "-Wfloat-equal"
3434
#endif
3535

36+
#if defined(__clang__)
37+
// P2614 deprecates has_denorm in C++23
38+
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
39+
#endif
40+
3641
char const* float_type(float*) { return "float"; }
3742
char const* float_type(double*) { return "double"; }
3843
char const* float_type(long double*) { return "long double"; }

0 commit comments

Comments
 (0)