From 0659d4459e5342d6f4575be5b08ac54efca9e41c Mon Sep 17 00:00:00 2001 From: Anatol Belski Date: Sun, 1 Nov 2020 21:46:36 +0100 Subject: [PATCH] hash: murmur: Fix GCC support version for no_sanitize While AddressSanitizer is supported as of 4.8, the no_sanitize attribute appears in 8.0. Signed-off-by: Anatol Belski --- ext/hash/murmur/endianness.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/hash/murmur/endianness.h b/ext/hash/murmur/endianness.h index fd971a383a..3dbb2e6a3d 100644 --- a/ext/hash/murmur/endianness.h +++ b/ext/hash/murmur/endianness.h @@ -55,7 +55,7 @@ FORCE_INLINE uint64_t BSWAP64(uint64_t u) } #endif -#if defined(__clang__) || defined(__GNUC__) && ( __GNUC__ > 4 || __GNUC__ == 4 && __GNUC_MINOR__ >= 8) +#if defined(__clang__) || defined(__GNUC__) && __GNUC__ >= 8 # define NO_SANITIZE_ALIGNMENT __attribute__((no_sanitize("alignment"))) #else # define NO_SANITIZE_ALIGNMENT -- 2.40.0