From 11274feb35bf42933d14a76c2882deee14cae2df Mon Sep 17 00:00:00 2001 From: Jonathan G Rennison Date: Mon, 22 Jan 2024 02:30:53 +0000 Subject: [PATCH] Fix deprecated builtin warning in robin_hood --- src/3rdparty/robin_hood/robin_hood.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/3rdparty/robin_hood/robin_hood.h b/src/3rdparty/robin_hood/robin_hood.h index 0af031f5f4..b4e0fbc56a 100644 --- a/src/3rdparty/robin_hood/robin_hood.h +++ b/src/3rdparty/robin_hood/robin_hood.h @@ -206,7 +206,7 @@ static Counts& counts() { // workaround missing "is_trivially_copyable" in g++ < 5.0 // See https://stackoverflow.com/a/31798726/48181 -#if defined(__GNUC__) && __GNUC__ < 5 +#if defined(__GNUC__) && __GNUC__ < 5 && !defined(__clang__) # define ROBIN_HOOD_IS_TRIVIALLY_COPYABLE(...) __has_trivial_copy(__VA_ARGS__) #else # define ROBIN_HOOD_IS_TRIVIALLY_COPYABLE(...) std::is_trivially_copyable<__VA_ARGS__>::value