Skip to content

Commit 65810eb

Browse files
committed
* enable warning in GCC because PVS-Studio are also detect this. This is an error!
1 parent ac1e4dd commit 65810eb

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

include/fast_float/float_common.h

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -205,20 +205,20 @@ FASTFLOAT_CONSTEXPR20 To bit_cast(const From &from) {
205205
#define FASTFLOAT_HAS_SIMD 1
206206
#endif
207207

208-
#if defined(__GNUC__)
208+
//#if defined(__GNUC__)
209209
// disable -Wcast-align=strict (GCC only)
210-
#define FASTFLOAT_SIMD_DISABLE_WARNINGS \
211-
_Pragma("GCC diagnostic push") \
212-
_Pragma("GCC diagnostic ignored \"-Wcast-align\"")
213-
#else
210+
//#define FASTFLOAT_SIMD_DISABLE_WARNINGS \
211+
// _Pragma("GCC diagnostic push") \
212+
// _Pragma("GCC diagnostic ignored \"-Wcast-align\"")
213+
//#else
214214
#define FASTFLOAT_SIMD_DISABLE_WARNINGS
215-
#endif
215+
//#endif
216216

217-
#if defined(__GNUC__)
218-
#define FASTFLOAT_SIMD_RESTORE_WARNINGS _Pragma("GCC diagnostic pop")
219-
#else
217+
//#if defined(__GNUC__)
218+
//#define FASTFLOAT_SIMD_RESTORE_WARNINGS _Pragma("GCC diagnostic pop")
219+
//#else
220220
#define FASTFLOAT_SIMD_RESTORE_WARNINGS
221-
#endif
221+
//#endif
222222

223223
#ifdef FASTFLOAT_VISUAL_STUDIO
224224
#define fastfloat_really_inline __forceinline

0 commit comments

Comments
 (0)