mirror of
https://github.com/fastfloat/fast_float.git
synced 2026-01-01 03:12:18 +08:00
* enable warning in GCC because PVS-Studio are also detect this. This is an error!
This commit is contained in:
parent
ac1e4dd805
commit
65810ebfd3
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user