When compiling I get the annoying warning below. I did not get it with g++-3.4. g++-4.0 do produce it. $ g++ --version g++ (GCC) 4.1.0 20050429 (experimental) Copyright (C) 2005 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. $ g++ -Wall -O1 -c foo.C -o oasAux.o foo.C: In function 'void f()': foo.C:15: warning: control may reach end of non-void function 'void* f2(unsigned int)' being inlined
Created attachment 8767 [details] Example program demonstrating the problem Compile with g++ -Wall -O1 -c foo.C to see the error
Even the code given in the bug has no dead code the bug is in the same in that GCC creates dead code. *** This bug has been marked as a duplicate of 19699 ***