This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

MISRA 9.2 warning on C Code generation tools v4.7.0B2 TMS570

Hi,

 

We are getting an unwarranted MISRA 9.2 warning on the zero initialisation of unsigned int arraya2 below. The zero initialisation of signed int arraya3 does not generate the warning.

unsigned int arraya2[5] = { 0U };

 

signed int arraya3[5] = { 0 };

(MISRA-C:2004 9.2/R) Braces shall be used to indicate and match the structure in the non-zero initialisation of arrays and structures.

Regards,

Tony.