Skip to content

Commit ed4de7a

Browse files
bostickslouken
authored andcommitted
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 ```
1 parent f361034 commit ed4de7a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/audio/SDL_audiotypecvt.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -537,8 +537,10 @@ static void SDL_TARGETING("ssse3") SDL_Convert_Swap32_SSSE3(Uint32 *dst, const U
537537
// behavior. However, the compiler support for this pragma is bad.
538538
#if defined(__clang__)
539539
#if __clang_major__ >= 12
540+
#if defined(__aarch64__)
540541
#pragma STDC FENV_ACCESS ON
541542
#endif
543+
#endif
542544
#elif defined(_MSC_VER)
543545
#pragma fenv_access (on)
544546
#elif defined(__GNUC__)
@@ -814,8 +816,10 @@ static void SDL_Convert_Swap32_NEON(Uint32 *dst, const Uint32 *src, int num_samp
814816

815817
#if defined(__clang__)
816818
#if __clang_major__ >= 12
819+
#if defined(__aarch64__)
817820
#pragma STDC FENV_ACCESS DEFAULT
818821
#endif
822+
#endif
819823
#elif defined(_MSC_VER)
820824
#pragma fenv_access (off)
821825
#elif defined(__GNUC__)

0 commit comments

Comments
 (0)