Hi All,<br><br>I have a piece of code which has a problem of uninitialized variable, I have used the -Wall which also adds <tt>-Wuninitialized,</tt><br clear="all"><br><br>void Call(int *a)<br>{<br>if (a==NULL) return;<br>
if (*a == 1 )<br>StatusUpdate = MyOne();<br>else<br>StatusUpdate = MyTwo();<br>}<br><br>int main(int argc, char * argv[])<br>{<br> int call; /* call is not initialized */<br> Call(&call);<br> return 0;<br>}<br><br>Do we have a mechanism to check such kind of errors with splint tool.<br>
<br>-- <br><a href="https://mail.google.com/mail/?ui=2&view=bsp&ver=1qygpcgurkovy">https://mail.google.com/mail/?ui=2&view=bsp&ver=1qygpcgurkovy</a><br>Regards <br>Vijayendra Suman<br>