Having just read a blog from John Carmack on static code analysis tools, I decided to start analyzing my own code. (see <a href="http://altdevblogaday.com/2011/12/24/static-code-analysis/">http://altdevblogaday.com/2011/12/24/static-code-analysis/</a> )<br>
Part of it is ENet, quite the latest version. These are the 3 results:<br><br><div id=":18n" class="tB">1>d:\source\trunk\dev\src\libs\enet\peer.cpp(743) : warning C6001: Using uninitialized memory 'reliableSequenceNumber': Lines: 715, 717, 718, 719, 720, 721, 723, 726, 739, 741, 742, 743<br>
1>d:\source\trunk\dev\src\libs\enet\protocol.cpp(222) : warning C6001: Using uninitialized memory 'outgoingCommand': Lines: 173, 174, 175, 176, 178, 179, 189, 210, 222<br>1>d:\source\trunk\dev\src\libs\enet\win32.cpp(244) : warning C6387: 'argument 6' might be '0': this does not adhere to the specification for the function 'WSASendTo': Lines: 224, 225, 227, 244<br>
<br>Not sure how the first 2 might be problems; perhaps someone else has a better clue?<br><br>Cheers,<br>Ruud van Gaal<br></div><br>