Closed stephanosio closed 4 years ago
cc @christophe0606
@stephanosio Which compiler ? gcc ? AC6 ? I am currently checking build issues with different compilers and different build config. So, I'll correct this as part of this work.
@christophe0606 I am using GCC 9.2.0.
This warning is generated because the di
and bi
variables are used uninitialised when n <= 1
:
It might be a good idea to add an assertion like the following:
ASSERT(n > 1);
@stephanosio I have made a temporary fix. I have initialized those variables to remove the warning. I have added a comment in the init function to highlight the fact that n must be > 1
And in a next release, this function will do the required checks (there is more than just checking n > 1) and return an error message if the pre-conditions are not true.
An uninitialised variable warning is displayed when compiling
arm_spline_interp_f32.c
.