Fix recent PowerPC warnings and clang warning

This commit is contained in:
Chip Kerchner
2023-03-15 16:50:46 +00:00
committed by Rasmus Munk Larsen
parent d54d228b49
commit d71ac6a755
2 changed files with 5 additions and 9 deletions

View File

@@ -48,7 +48,7 @@
#if __has_warning("-Wimplicit-int-float-conversion")
#pragma clang diagnostic ignored "-Wimplicit-int-float-conversion"
#endif
#if ( defined(__ALTIVEC__) || defined(__VSX__) ) && __cplusplus < 201103L
#if ( defined(__ALTIVEC__) || defined(__VSX__) ) && ( !defined(__STDC_VERSION__) || (__STDC_VERSION__ < 201112L) )
// warning: generic selections are a C11-specific feature
// ignoring warnings thrown at vec_ctf in Altivec/PacketMath.h
#if __has_warning("-Wc11-extensions")