From 1899647146384501e342b9989645a51e81cb4271 Mon Sep 17 00:00:00 2001 From: IRainman Date: Wed, 12 Mar 2025 17:56:01 +0300 Subject: [PATCH] GCC compilation fix. --- include/fast_float/constexpr_feature_detect.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/fast_float/constexpr_feature_detect.h b/include/fast_float/constexpr_feature_detect.h index 25a513d..af6474b 100644 --- a/include/fast_float/constexpr_feature_detect.h +++ b/include/fast_float/constexpr_feature_detect.h @@ -62,7 +62,7 @@ #if defined(__clang__) // needs testing #define FASTFLOAT_ASSUME(expr) __builtin_assume(expr) #elif defined(__GNUC__) && !defined(__ICC) // needs testing -#define FASTFLOAT_ASSUME(expr) __attribute__((expr)) +#define FASTFLOAT_ASSUME(expr) if (expr) {} else { __builtin_unreachable(); } #elif defined(__ICC) // needs testing #define FASTFLOAT_ASSUME(expr) __assume(expr) #elif defined(_MSC_VER)