clang 10 aggressively warns about precision loss when converting int to float (or long to double)

(cherry picked from commit cd541ad52c8152340469cae210312c0e27829c8d)
This commit is contained in:
Christoph Hertzberg 2021-02-27 18:30:47 +01:00
parent 2660d01fa7
commit 8f686ac4ec

View File

@ -44,6 +44,9 @@
#if __clang_major__ >= 3 && __clang_minor__ >= 5
#pragma clang diagnostic ignored "-Wabsolute-value"
#endif
#if __clang_major__ >= 10
#pragma clang diagnostic ignored "-Wimplicit-int-float-conversion"
#endif
#if ( defined(__ALTIVEC__) || defined(__VSX__) ) && __cplusplus < 201103L
// warning: generic selections are a C11-specific feature
// ignoring warnings thrown at vec_ctf in Altivec/PacketMath.h