From 995370c90409a6aa860054beca5c404970058b8a Mon Sep 17 00:00:00 2001 From: Daniel James Date: Tue, 19 Sep 2017 12:24:36 +0100 Subject: [PATCH] Use is_zero workaround on clang The same warning appears on clang for windows, but the workaround wasn't used because the gcc macro wasn't defined. --- include/boost/functional/hash/detail/hash_float.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/boost/functional/hash/detail/hash_float.hpp b/include/boost/functional/hash/detail/hash_float.hpp index 9fb8168..1816c57 100644 --- a/include/boost/functional/hash/detail/hash_float.hpp +++ b/include/boost/functional/hash/detail/hash_float.hpp @@ -241,7 +241,7 @@ namespace boost template inline bool is_zero(T v) { -#if !defined(__GNUC__) +#if !defined(__GNUC__) && !defined(__clang__) return v == 0; #else // GCC's '-Wfloat-equal' will complain about comparing