01-04-2015, 11:49 AM
Your examples are all non compliant. You may either use the { 0 } syntactic form or you can initialise all elements of the array. E.g.
Code:
static uint16_t glob_arr[3] = {0u, 0u, 0u}; /* Compliant - all items initialised */
Posted by and on behalf of the MISRA C Working Group