From 97969db78cdae6922bae03f4d6d5647bd51145fd Mon Sep 17 00:00:00 2001 From: Christophe Favergeon Date: Wed, 5 Feb 2020 13:18:27 +0100 Subject: [PATCH] CMSIS-DSP: Corrected compilation warnings --- Source/SupportFunctions/arm_float_to_q15.c | 1 + Testing/Source/Tests/StatsTestsF32.cpp | 5 ++--- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Source/SupportFunctions/arm_float_to_q15.c b/Source/SupportFunctions/arm_float_to_q15.c index ff79c699..e34089ed 100644 --- a/Source/SupportFunctions/arm_float_to_q15.c +++ b/Source/SupportFunctions/arm_float_to_q15.c @@ -134,6 +134,7 @@ void arm_float_to_q15( float32x4_t mHalf = vdupq_n_f32(-0.5f / 32768.0f); float32x4_t r; uint32x4_t cmp; + float32_t in; #endif int32x4_t cvt; diff --git a/Testing/Source/Tests/StatsTestsF32.cpp b/Testing/Source/Tests/StatsTestsF32.cpp index a2d1a4e9..fed98cef 100755 --- a/Testing/Source/Tests/StatsTestsF32.cpp +++ b/Testing/Source/Tests/StatsTestsF32.cpp @@ -214,7 +214,6 @@ a double precision computation. float32_t in[4]={4.0f, 7.0f, 13.0f, 16.0f}; float32_t result; int i; - arm_status status; /* @@ -223,7 +222,7 @@ a double precision computation. */ for(i=0 ; i < 4; i++) { - in[i] += 3e4; + in[i] += 3.0e4f; } arm_std_f32(in,4,&result); @@ -238,7 +237,7 @@ a double precision computation. */ - ASSERT_TRUE(fabs(5.47723f - result) < 1.0e-4); + ASSERT_TRUE(fabs(5.47723f - result) < 1.0e-4f); }