* enable warning in GCC because PVS-Studio are also detect this. This is an error!

This commit is contained in:
IRainman 2025-12-25 00:21:42 +03:00
parent ac1e4dd805
commit 65810ebfd3

View File

@ -205,20 +205,20 @@ FASTFLOAT_CONSTEXPR20 To bit_cast(const From &from) {
#define FASTFLOAT_HAS_SIMD 1 #define FASTFLOAT_HAS_SIMD 1
#endif #endif
#if defined(__GNUC__) //#if defined(__GNUC__)
// disable -Wcast-align=strict (GCC only) // disable -Wcast-align=strict (GCC only)
#define FASTFLOAT_SIMD_DISABLE_WARNINGS \ //#define FASTFLOAT_SIMD_DISABLE_WARNINGS \
_Pragma("GCC diagnostic push") \ // _Pragma("GCC diagnostic push") \
_Pragma("GCC diagnostic ignored \"-Wcast-align\"") // _Pragma("GCC diagnostic ignored \"-Wcast-align\"")
#else //#else
#define FASTFLOAT_SIMD_DISABLE_WARNINGS #define FASTFLOAT_SIMD_DISABLE_WARNINGS
#endif //#endif
#if defined(__GNUC__) //#if defined(__GNUC__)
#define FASTFLOAT_SIMD_RESTORE_WARNINGS _Pragma("GCC diagnostic pop") //#define FASTFLOAT_SIMD_RESTORE_WARNINGS _Pragma("GCC diagnostic pop")
#else //#else
#define FASTFLOAT_SIMD_RESTORE_WARNINGS #define FASTFLOAT_SIMD_RESTORE_WARNINGS
#endif //#endif
#ifdef FASTFLOAT_VISUAL_STUDIO #ifdef FASTFLOAT_VISUAL_STUDIO
#define fastfloat_really_inline __forceinline #define fastfloat_really_inline __forceinline