mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
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:
@@ -44,6 +44,9 @@
|
|||||||
#if __clang_major__ >= 3 && __clang_minor__ >= 5
|
#if __clang_major__ >= 3 && __clang_minor__ >= 5
|
||||||
#pragma clang diagnostic ignored "-Wabsolute-value"
|
#pragma clang diagnostic ignored "-Wabsolute-value"
|
||||||
#endif
|
#endif
|
||||||
|
#if __clang_major__ >= 10
|
||||||
|
#pragma clang diagnostic ignored "-Wimplicit-int-float-conversion"
|
||||||
|
#endif
|
||||||
#if ( defined(__ALTIVEC__) || defined(__VSX__) ) && __cplusplus < 201103L
|
#if ( defined(__ALTIVEC__) || defined(__VSX__) ) && __cplusplus < 201103L
|
||||||
// warning: generic selections are a C11-specific feature
|
// warning: generic selections are a C11-specific feature
|
||||||
// ignoring warnings thrown at vec_ctf in Altivec/PacketMath.h
|
// ignoring warnings thrown at vec_ctf in Altivec/PacketMath.h
|
||||||
|
|||||||
Reference in New Issue
Block a user