From 8f8bb8d56b346274c9b2918928f2d5c3dae51758 Mon Sep 17 00:00:00 2001 From: Christophe Favergeon Date: Mon, 21 Aug 2023 09:04:18 +0200 Subject: [PATCH] Fix pragma clang warning with gcc The test must work with armclang and XCode --- Source/StatisticsFunctions/arm_mse_f64.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Source/StatisticsFunctions/arm_mse_f64.c b/Source/StatisticsFunctions/arm_mse_f64.c index 9f681eea..8937de73 100755 --- a/Source/StatisticsFunctions/arm_mse_f64.c +++ b/Source/StatisticsFunctions/arm_mse_f64.c @@ -111,8 +111,7 @@ void arm_mse_f64( #endif #endif -#if defined(__ARMCC_VERSION) && (__ARMCC_VERSION >= 6010050) && \ - defined(ARM_MATH_NEON) && defined(__aarch64__) +#if defined(__clang__) && defined(ARM_MATH_NEON) && defined(__aarch64__) #pragma clang loop vectorize(enable) unroll(disable) #endif while (blkCnt > 0U)