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 -- Summary: Unexpected warning on legal code Product: gcc Version: 4.1.0 Status: UNCONFIRMED Severity: normal Priority: P2 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: gcc at magfr dot user dot lysator dot liu dot se CC: gcc-bugs at gcc dot gnu dot org GCC build triplet: i686-pc-linux-gnu GCC host triplet: i686-pc-linux-gnu GCC target triplet: i686-pc-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21290