Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

2
  • The output:unint.cpp: In function 'int main()': unint.cpp:8: warning: 'a' is used uninitialized in this function unint.cpp:9: warning: 'b' is used uninitialized in this function Commented Apr 25, 2013 at 11:02
  • The question is titled "Easy way [to] find uninitialized member variables". These are not member variables. We all know about -Wunitialized for non-member variables, and we should all have it already as part of already using -Wall -Wextra -Wpedantic. Also, it does not "need the -O3 option" or any other form of optimisation to be present or absent, although they may affect which warnings are returned if optimisation causes side-effect-less variables to be removed. Commented Aug 12, 2016 at 11:39