incompatible types: "VOID" and "INT" for op "RETURN"
There isn't a perfect solution considering existing code etc but
similarly can be diagnosed in Steve's case, more along the lines of:
warning: missing return statement at end of non-void function "foo"
--
Greg Comeau / 4.3.10.1 with C++0xisms now in beta!
Comeau C/C++ ONLINE ==>
http://www.comeaucomputing.com/tryitout
World Class Compilers: Breathtaking C++, Amazing C99, Fabulous C90.
Comeau C/C++ with Dinkumware's Libraries... Have you tried it?