Re: [cc65] bug?

From: Ullrich von Bassewitz <uz1musoftware.de>
Date: 2009-08-31 15:00:51
On Wed, Aug 26, 2009 at 09:35:48PM +0200, Groepaz wrote:
> btw while i am at it... there is another warning i am missing:
>
> int foo(void)
> {
> }
>
> gcc gives "warning: control reaches end of non-void function" on this, would
> that be possible ?

In this special case: yes. In the more common case: no. What I can do is to
check if there is *any* return statement in a function returning something.
Checking if there is a return statement in every possible execution path
requires flow analysis which cc65 does not have.

Regards


        Uz


-- 
Ullrich von Bassewitz                                  uz@musoftware.de
----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Mon Aug 31 15:02:36 2009

This archive was generated by hypermail 2.1.8 : 2009-08-31 15:02:38 CEST