I am looking for an easy way to find uninitialized class member variables.
Finding them in either runtime or compile time is OK.
Currently
Consider the following code
unint.cpp:
int main() { int a; int b; a++; b = b + 5; return 0; }
If the code is compiled with following comment, the warning messages shall be displayed.
g++ -O3 -Wuninitialized unint.cpp
Note: the -Wuninitialized needs the -O3 option also.