980608 value returning inlines not checked

Valentin Bonnard bonnardv@pratique.fr
Sat Jun 13 11:07:00 GMT 1998


egcs behaviour is similar to gcc:

kayak-~ $ gcc test-bug.cc 
kayak-~ $ gcc -Wall test-bug.cc  
test-bug.cc: In function `double f1()':
test-bug.cc:10: warning: control reaches end of non-void function `f1()'
test-bug.cc: In function `struct A f2()':
...
kayak-~ $ $egcs test-bug.cc
kayak-~ $ $egcs -Wall test-bug.cc
test-bug.cc: In function `double f1()':
test-bug.cc:10: warning: control reaches end of non-void function `f1()'
test-bug.cc: In function `struct A f2()':
...

and seems perfectly correct

-- 

Valentin Bonnard                mailto:bonnardv@pratique.fr
info about C++/a propos du C++: http://pages.pratique.fr/~bonnardv/





More information about the Gcc-bugs mailing list