Quantcast
Channel: LabWindows/CVI topics
Viewing all articles
Browse latest Browse all 5340

Local array initializations not recognized

$
0
0

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


Viewing all articles
Browse latest Browse all 5340

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>