From 65810ebfd3a13435329648effb1e48800a2a2a95 Mon Sep 17 00:00:00 2001 From: IRainman Date: Thu, 25 Dec 2025 00:21:42 +0300 Subject: [PATCH] * enable warning in GCC because PVS-Studio are also detect this. This is an error! --- include/fast_float/float_common.h | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/include/fast_float/float_common.h b/include/fast_float/float_common.h index 51ceb9d..d64859a 100644 --- a/include/fast_float/float_common.h +++ b/include/fast_float/float_common.h @@ -205,20 +205,20 @@ FASTFLOAT_CONSTEXPR20 To bit_cast(const From &from) { #define FASTFLOAT_HAS_SIMD 1 #endif -#if defined(__GNUC__) +//#if defined(__GNUC__) // disable -Wcast-align=strict (GCC only) -#define FASTFLOAT_SIMD_DISABLE_WARNINGS \ - _Pragma("GCC diagnostic push") \ - _Pragma("GCC diagnostic ignored \"-Wcast-align\"") -#else +//#define FASTFLOAT_SIMD_DISABLE_WARNINGS \ +// _Pragma("GCC diagnostic push") \ +// _Pragma("GCC diagnostic ignored \"-Wcast-align\"") +//#else #define FASTFLOAT_SIMD_DISABLE_WARNINGS -#endif +//#endif -#if defined(__GNUC__) -#define FASTFLOAT_SIMD_RESTORE_WARNINGS _Pragma("GCC diagnostic pop") -#else +//#if defined(__GNUC__) +//#define FASTFLOAT_SIMD_RESTORE_WARNINGS _Pragma("GCC diagnostic pop") +//#else #define FASTFLOAT_SIMD_RESTORE_WARNINGS -#endif +//#endif #ifdef FASTFLOAT_VISUAL_STUDIO #define fastfloat_really_inline __forceinline