11-26-2013 10:24 AM
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
Solved! Go to Solution.
11-27-2013 04:05 AM
Hello richferrara!
I would like to ask you if you could provide more detailed information about this compiler warning you're seeing, since I wasn't able to reproduce the issue in CVI 2012 or CVI 2013. Could you please provide the following details?
Thank you!
11-27-2013 07:46 AM
Sorry, this was my goof. I didn't realize the code I was editing had another array with the same name defined locally in another routine.