From 5959103346ba716db58754b00c9626108ca9085b Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Sun, 17 Oct 2021 20:13:56 +0300 Subject: [PATCH] Extend __GNUC__ warning suppression to __clang__ --- test/hash_complex_test.cpp | 2 +- test/hash_float_test.hpp | 2 +- test/hash_number_test.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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