This code generates a compile warning:
myRoutine()
{
unsigned int localBuffer[8] = {0,0,0,0,0,0,0,0};
...
if (condition)
{
myVariable = localBuffer[1];
}
}
==> warning: variable 'localBuffer[1]' is possibly uninitialized when used here
This code generates a compile warning:
myRoutine()
{
unsigned int localBuffer[8] = {0,0,0,0,0,0,0,0};
...
if (condition)
{
myVariable = localBuffer[1];
}
}
==> warning: variable 'localBuffer[1]' is possibly uninitialized when used here