bug #1718: Add cast to successfully compile with clang on PowerPC

Ignoring -Wc11-extensions warnings thrown by clang at Altivec/PacketMath.h
This commit is contained in:
João P. L. de Carvalho
2019-08-09 15:56:26 -06:00
parent d55d392e7b
commit 66d073c38e
2 changed files with 6 additions and 1 deletions

View File

@@ -44,6 +44,11 @@
#if __clang_major__ >= 3 && __clang_minor__ >= 5
#pragma clang diagnostic ignored "-Wabsolute-value"
#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
#pragma clang diagnostic ignored "-Wc11-extensions"
#endif
#elif defined __GNUC__