12-06-2015, 06:58 PM
Hi. We're new to MISRA-2004. Can anyone explain why I get these warnings and how to fix them. We are using Code Composer.
unsigned int x = 0U;
unsigned int* px;
px = &x; /* 10.1 warning */
px = (unsigned int*)&x; /* 10.3 warning */
unsigned int x = 0U;
unsigned int* px;
px = &x; /* 10.1 warning */
px = (unsigned int*)&x; /* 10.3 warning */
<t></t>