From 802af1489b6137dfa386f693266deff4d7756a33 Mon Sep 17 00:00:00 2001 From: Ryan McClelland Date: Sun, 16 Apr 2023 22:34:02 -0700 Subject: [PATCH] Fix pragma clang warning with gcc 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. --- Source/StatisticsFunctions/arm_mse_f64.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Source/StatisticsFunctions/arm_mse_f64.c b/Source/StatisticsFunctions/arm_mse_f64.c index d10ad9d4..9f681eea 100755 --- a/Source/StatisticsFunctions/arm_mse_f64.c +++ b/Source/StatisticsFunctions/arm_mse_f64.c @@ -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)