From 6cf85cee6e404157dc05e0e020abd0a041150774 Mon Sep 17 00:00:00 2001 From: "Markus F.X.J. Oberhumer" Date: Tue, 20 Dec 2022 11:40:22 +0100 Subject: [PATCH] src: minor compatibility fix --- src/util/dt_impl.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/util/dt_impl.cpp b/src/util/dt_impl.cpp index de40644f..09377dee 100644 --- a/src/util/dt_impl.cpp +++ b/src/util/dt_impl.cpp @@ -38,6 +38,10 @@ #endif #define DOCTEST_CONFIG_NO_UNPREFIXED_OPTIONS #if !defined(DOCTEST_CONFIG_DISABLE) +#if defined(__clang__) && defined(__FAST_MATH__) && defined(__INTEL_LLVM_COMPILER) +// warning: comparison with NaN always evaluates to false in fast floating point modes +#pragma clang diagnostic ignored "-Wtautological-constant-compare" +#endif #include #endif