Turn up warnings to level 4. It'll notify you about unused variable, uninitialized variables, etc. Fix all of that.
If you're using Visual Studio 2015 (and maybe 2013?) you can also run static code analysis. It might show extra issues (possible nullptr, etc.), but sometimes it also points out false positives.