From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: References: <2706566.04NpN2Dq1k@coil> Date: Fri, 1 Mar 2013 08:05:27 -0500 Message-ID: From: Comeau At9Fans To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: [9fans] X11 Topicbox-Message-UUID: 21f8a23a-ead8-11e9-9d60-3106f5b1d025 On Thu, Feb 28, 2013 at 1:10 PM, Joel C. Salomon wrote: > > On Thu, Feb 28, 2013 at 12:19 PM, dexen deVries 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?