From ed4de7aeed5ec06472e953a107680e02c077755f Mon Sep 17 00:00:00 2001
From: Brenton Bostick <[EMAIL REDACTED]>
Date: Sun, 27 Jul 2025 10:55:05 -0400
Subject: [PATCH] Fix warning on Android arm-v7 Building SDL for armeabi-v7a
gives this warning: ``` SDL/src/audio/SDL_audiotypecvt.c:541:14: warning:
'#pragma FENV_ACCESS' is not supported on this target - ignored
[-Wignored-pragmas] 541 | #pragma STDC FENV_ACCESS ON ```
---
src/audio/SDL_audiotypecvt.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src/audio/SDL_audiotypecvt.c b/src/audio/SDL_audiotypecvt.c
index 78c325e577572..bbd95054ce210 100644
--- a/src/audio/SDL_audiotypecvt.c
+++ b/src/audio/SDL_audiotypecvt.c
@@ -537,8 +537,10 @@ static void SDL_TARGETING("ssse3") SDL_Convert_Swap32_SSSE3(Uint32 *dst, const U
// behavior. However, the compiler support for this pragma is bad.
#if defined(__clang__)
#if __clang_major__ >= 12
+#if defined(__aarch64__)
#pragma STDC FENV_ACCESS ON
#endif
+#endif
#elif defined(_MSC_VER)
#pragma fenv_access (on)
#elif defined(__GNUC__)
@@ -814,8 +816,10 @@ static void SDL_Convert_Swap32_NEON(Uint32 *dst, const Uint32 *src, int num_samp
#if defined(__clang__)
#if __clang_major__ >= 12
+#if defined(__aarch64__)
#pragma STDC FENV_ACCESS DEFAULT
#endif
+#endif
#elif defined(_MSC_VER)
#pragma fenv_access (off)
#elif defined(__GNUC__)