Re: g++ no warning about uninitialized variables

2013-04-19 Thread marco atzeri
On 4/19/2013 1:07 PM, David wrote: I am using eclipse and gnu. (Maybe my version is to old.) I have struct MyStruct { int a0,a1; }; void afunc(int &t) { cout<<"in para "< likely your makefile is swallowing the output. g++ -Wall -pedantic prova.cpp -o prova prova.cpp: In function ‘int ma

Re: g++ no warning about uninitialized variables

2013-04-19 Thread David
One got to use -O or -O1 as option to g++ -O0 will not do. By the way it is really limited to what extent the compiler can track down uninitialized variables. Den 19-04-2013 13:07, David skrev: I am using eclipse and gnu. (Maybe my version is to old.) I have struct MyStruct { int a0,a1;

g++ no warning about uninitialized variables

2013-04-19 Thread David
I am using eclipse and gnu. (Maybe my version is to old.) I have struct MyStruct { int a0,a1; }; void afunc(int &t) { cout<<"in para "