On Thu, Feb 28, 2013 at 1:10 PM, Joel C. Salomon <[email protected]> wrote:
>
> On Thu, Feb 28, 2013 at 12:19 PM, dexen deVries <[email protected]> 
> wrote:
> > #define exit(status) do { exit(status); return 0; } while (0)
> What does kenc do with a void function attempting to return 0?

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?

Reply via email to