Skip to content

Commit

Permalink
Fix pragma clang warning with gcc
Browse files Browse the repository at this point in the history
When compiling with gcc a warning will appear for #pragma clang as
it will be ignored. Add a conditional compile so only armclang
will see the pragma clang.
  • Loading branch information
XenuIsWatching authored and christophe0606 committed Aug 21, 2023
1 parent f84f3ab commit 5cbce30
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Source/StatisticsFunctions/arm_mse_f64.c
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,8 @@ void arm_mse_f64(
#endif
#endif

#if defined(ARM_MATH_NEON) && defined(__aarch64__)
#if defined(__ARMCC_VERSION) && (__ARMCC_VERSION >= 6010050) && \
defined(ARM_MATH_NEON) && defined(__aarch64__)
#pragma clang loop vectorize(enable) unroll(disable)
#endif
while (blkCnt > 0U)
Expand Down

0 comments on commit 5cbce30

Please sign in to comment.