Warning after code generation
Hi,
I got the following warning after generating the code for evspin32g4:
Description Resource Path Location Type
array subscript 1 is above array bounds of 'PWMC_Handle_t *[1]' {aka 'struct PWMC_Handle *[1]'} [-Warray-bounds] mc_tasks.c /xxx/Application/User line 831 C/C++ Problem
Code line on 831 is:
CodeReturn |= PWMC_IsFaultOccurred(pwmcHandle[bMotor]); /* check for fault. It return MC_OVER_CURR or MC_NO_FAULTS
Versions applications:
motorcontrol workbench: 6.2.1
STM32CubeMX: 6.11.0
STM32CubeIDE: 1.15.0
I did not added only code yet. Only thing I did yet is converting the code from c to c++. If I convert back the warning is still there after building. Could someone help me please with this warning?
