currently all build warningas are connected to the edge-impulse-sdk and won't be fixed at this stage:
[393/618] Building C object CMakeFiles/app.dir/edge-impulse-sdk/CMSIS/NN/Source/ConvolutionFunctions/arm_convolve_HWC_q7_RGB.c.obj
In file included from ../edge-impulse-sdk/CMSIS/NN/Source/ConvolutionFunctions/arm_convolve_HWC_q7_RGB.c:30:
../edge-impulse-sdk/CMSIS/NN/Source/ConvolutionFunctions/arm_convolve_HWC_q7_RGB.c: In function 'arm_convolve_HWC_q7_RGB':
.././edge-impulse-sdk/CMSIS/DSP/Include/arm_math.h:841:33: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
#define __SIMD32(addr) (*(__SIMD32_TYPE **) & (addr))
^~~~~~~~~~~~~~~~~~~~~~~~~~~
../edge-impulse-sdk/CMSIS/NN/Source/ConvolutionFunctions/arm_convolve_HWC_q7_RGB.c:122:26: note: in expansion of macro '__SIMD32'
*__SIMD32(pBuffer) = 0x0;
^~~~~~~~
.././edge-impulse-sdk/CMSIS/DSP/Include/arm_math.h:841:33: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
#define __SIMD32(addr) (*(__SIMD32_TYPE **) & (addr))
^~~~~~~~~~~~~~~~~~~~~~~~~~~
../edge-impulse-sdk/CMSIS/NN/Source/ConvolutionFunctions/arm_convolve_HWC_q7_RGB.c:154:26: note: in expansion of macro '__SIMD32'
*__SIMD32(pBuffer) = __PKHBT(bottom.word, top.word, 0);
^~~~~~~~
[422/618] Building C object CMakeFiles/app.dir/edge-impulse-sdk/CMSIS/NN/Source/NNSupportFunctions/arm_nn_mult_q15.c.obj
In file included from .././edge-impulse-sdk/CMSIS/NN/Include/arm_nnsupportfunctions.h:33,
from .././edge-impulse-sdk/CMSIS/NN/Include/arm_nnfunctions.h:163,
from ../edge-impulse-sdk/CMSIS/NN/Source/NNSupportFunctions/arm_nn_mult_q15.c:31:
../edge-impulse-sdk/CMSIS/NN/Source/NNSupportFunctions/arm_nn_mult_q15.c: In function 'arm_nn_mult_q15':
.././edge-impulse-sdk/CMSIS/DSP/Include/arm_math.h:841:33: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
#define __SIMD32(addr) (*(__SIMD32_TYPE **) & (addr))
^~~~~~~~~~~~~~~~~~~~~~~~~~~
../edge-impulse-sdk/CMSIS/NN/Source/NNSupportFunctions/arm_nn_mult_q15.c:104:6: note: in expansion of macro '__SIMD32'
*__SIMD32(pDst)++ = __PKHBT(out2, out1, 16);
^~~~~~~~
.././edge-impulse-sdk/CMSIS/DSP/Include/arm_math.h:841:33: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
#define __SIMD32(addr) (*(__SIMD32_TYPE **) & (addr))
^~~~~~~~~~~~~~~~~~~~~~~~~~~
../edge-impulse-sdk/CMSIS/NN/Source/NNSupportFunctions/arm_nn_mult_q15.c:105:6: note: in expansion of macro '__SIMD32'
*__SIMD32(pDst)++ = __PKHBT(out4, out3, 16);
^~~~~~~~
[423/618] Building C object CMakeFiles/app.dir/edge-impulse-sdk/CMSIS/NN/Source/NNSupportFunctions/arm_nn_mult_q7.c.obj
In file included from .././edge-impulse-sdk/CMSIS/NN/Include/arm_nnsupportfunctions.h:33,
from .././edge-impulse-sdk/CMSIS/NN/Include/arm_nnfunctions.h:163,
from ../edge-impulse-sdk/CMSIS/NN/Source/NNSupportFunctions/arm_nn_mult_q7.c:31:
../edge-impulse-sdk/CMSIS/NN/Source/NNSupportFunctions/arm_nn_mult_q7.c: In function 'arm_nn_mult_q7':
.././edge-impulse-sdk/CMSIS/DSP/Include/arm_math.h:841:33: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
#define __SIMD32(addr) (*(__SIMD32_TYPE **) & (addr))
^~~~~~~~~~~~~~~~~~~~~~~~~~~
../edge-impulse-sdk/CMSIS/NN/Source/NNSupportFunctions/arm_nn_mult_q7.c:85:6: note: in expansion of macro '__SIMD32'
*__SIMD32(pDst)++ = __PACKq7(out1, out2, out3, out4);
^~~~~~~~
[431/618] Building C object CMakeFiles/app.dir/edge-impulse-sdk/CMSIS/NN/Source/NNSupportFunctions/arm_q7_to_q15_reordered_no_shift.c.obj
In file included from .././edge-impulse-sdk/CMSIS/NN/Include/arm_nnsupportfunctions.h:33,
from ../edge-impulse-sdk/CMSIS/NN/Source/NNSupportFunctions/arm_q7_to_q15_reordered_no_shift.c:31:
../edge-impulse-sdk/CMSIS/NN/Source/NNSupportFunctions/arm_q7_to_q15_reordered_no_shift.c: In function 'arm_q7_to_q15_reordered_no_shift':
.././edge-impulse-sdk/CMSIS/DSP/Include/arm_math.h:841:33: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
#define __SIMD32(addr) (*(__SIMD32_TYPE **) & (addr))
^~~~~~~~~~~~~~~~~~~~~~~~~~~
../edge-impulse-sdk/CMSIS/NN/Source/NNSupportFunctions/arm_q7_to_q15_reordered_no_shift.c:106:10: note: in expansion of macro '__SIMD32'
*__SIMD32(pDst)++ = in2;
^~~~~~~~
.././edge-impulse-sdk/CMSIS/DSP/Include/arm_math.h:841:33: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
#define __SIMD32(addr) (*(__SIMD32_TYPE **) & (addr))
^~~~~~~~~~~~~~~~~~~~~~~~~~~
../edge-impulse-sdk/CMSIS/NN/Source/NNSupportFunctions/arm_q7_to_q15_reordered_no_shift.c:107:10: note: in expansion of macro '__SIMD32'
*__SIMD32(pDst)++ = in1;
^~~~~~~~
[436/618] Building C object CMakeFiles/app.dir/edge-impulse-sdk/CMSIS/NN/Source/PoolingFunctions/arm_pool_q7_HWC.c.obj
In file included from ../edge-impulse-sdk/CMSIS/NN/Source/PoolingFunctions/arm_pool_q7_HWC.c:31:
../edge-impulse-sdk/CMSIS/NN/Source/PoolingFunctions/arm_pool_q7_HWC.c: In function 'compare_and_replace_if_larger_q7':
.././edge-impulse-sdk/CMSIS/DSP/Include/arm_math.h:841:33: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
#define __SIMD32(addr) (*(__SIMD32_TYPE **) & (addr))
^~~~~~~~~~~~~~~~~~~~~~~~~~~
../edge-impulse-sdk/CMSIS/NN/Source/PoolingFunctions/arm_pool_q7_HWC.c:78:10: note: in expansion of macro '__SIMD32'
*__SIMD32(pIn)++ = in.word;
^~~~~~~~
../edge-impulse-sdk/CMSIS/NN/Source/PoolingFunctions/arm_pool_q7_HWC.c: In function 'accumulate_q7_to_q15':
.././edge-impulse-sdk/CMSIS/DSP/Include/arm_math.h:841:33: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
#define __SIMD32(addr) (*(__SIMD32_TYPE **) & (addr))
^~~~~~~~~~~~~~~~~~~~~~~~~~~
../edge-impulse-sdk/CMSIS/NN/Source/PoolingFunctions/arm_pool_q7_HWC.c:122:10: note: in expansion of macro '__SIMD32'
*__SIMD32(pCnt)++ = __QADD16(vo1, in);
^~~~~~~~
.././edge-impulse-sdk/CMSIS/DSP/Include/arm_math.h:841:33: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
#define __SIMD32(addr) (*(__SIMD32_TYPE **) & (addr))
^~~~~~~~~~~~~~~~~~~~~~~~~~~
../edge-impulse-sdk/CMSIS/NN/Source/PoolingFunctions/arm_pool_q7_HWC.c:125:10: note: in expansion of macro '__SIMD32'
*__SIMD32(pCnt)++ = __QADD16(vo2, in);
^~~~~~~~
[445/618] Building CXX object CMakeFiles/app.dir/edge-impulse-sdk/dsp/dct/fast-dct-fft.cpp.obj
In file included from ../edge-impulse-sdk/dsp/dct/fast-dct-fft.cpp:29:
../edge-impulse-sdk/dsp/dct/../numpy.hpp: In static member function 'static float ei::numpy::log(float)':
../edge-impulse-sdk/dsp/dct/../numpy.hpp:1354:26: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
g = (int32_t) * ((int32_t *)&a);
~^~~~~~~~~~~~~~
../edge-impulse-sdk/dsp/dct/../numpy.hpp:1357:24: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
m = (float) * ((float *)&g);
~^~~~~~~~~~~~
[499/618] Building CXX object CMakeFiles/app.dir/edge-impulse-sdk/tensorflow/lite/micro/micro_string.cc.obj
../edge-impulse-sdk/tensorflow/lite/micro/micro_string.cc: In function 'char* {anonymous}::FastFloatToBufferLeft(float, char*)':
../edge-impulse-sdk/tensorflow/lite/micro/micro_string.cc:128:23: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
const uint32_t u = *reinterpret_cast<uint32_t*>(&f);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[515/618] Building CXX object CMakeFiles/app.dir/src/main.cpp.obj
In file included from .././edge-impulse-sdk/dsp/spectral/processing.hpp:28,
from .././edge-impulse-sdk/dsp/spectral/spectral.hpp:27,
from ../edge-impulse-sdk/classifier/ei_run_dsp.h:27,
from ../edge-impulse-sdk/classifier/ei_run_classifier.h:30,
from ../src/main.cpp:2:
.././edge-impulse-sdk/dsp/spectral/../numpy.hpp: In static member function 'static float ei::numpy::log(float)':
.././edge-impulse-sdk/dsp/spectral/../numpy.hpp:1354:26: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
g = (int32_t) * ((int32_t *)&a);
~^~~~~~~~~~~~~~
.././edge-impulse-sdk/dsp/spectral/../numpy.hpp:1357:24: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
m = (float) * ((float *)&g);
currently all build warningas are connected to the edge-impulse-sdk and won't be fixed at this stage: