diff --git a/test/hash_complex_test.cpp b/test/hash_complex_test.cpp index 5ecacbf..5afd7ac 100644 --- a/test/hash_complex_test.cpp +++ b/test/hash_complex_test.cpp @@ -35,7 +35,7 @@ int main() {} #endif #endif -#if defined(__GNUC__) && !defined(BOOST_INTEL_CXX_VERSION) +#if ( defined(__GNUC__) || defined(__clang__) ) && !defined(BOOST_INTEL_CXX_VERSION) #pragma GCC diagnostic ignored "-Wfloat-equal" #endif diff --git a/test/hash_float_test.hpp b/test/hash_float_test.hpp index fd31687..6b28a2e 100644 --- a/test/hash_float_test.hpp +++ b/test/hash_float_test.hpp @@ -30,7 +30,7 @@ #endif #endif -#if defined(__GNUC__) && !defined(BOOST_INTEL_CXX_VERSION) +#if ( defined(__GNUC__) || defined(__clang__) ) && !defined(BOOST_INTEL_CXX_VERSION) #pragma GCC diagnostic ignored "-Wfloat-equal" #endif diff --git a/test/hash_number_test.cpp b/test/hash_number_test.cpp index 72ab626..668a86c 100644 --- a/test/hash_number_test.cpp +++ b/test/hash_number_test.cpp @@ -26,7 +26,7 @@ #pragma warning(disable:4310) // cast truncates constant value #endif -#if defined(__GNUC__) && !defined(BOOST_INTEL_CXX_VERSION) +#if ( defined(__GNUC__) || defined(__clang__) ) && !defined(BOOST_INTEL_CXX_VERSION) #pragma GCC diagnostic ignored "-Wfloat-equal" #endif