Re: [cc65] return vs. exit()

From: Ullrich von Bassewitz <uz1musoftware.de>
Date: 2009-10-18 19:03:19
On Sat, Oct 17, 2009 at 02:32:02AM +0200, silverdr@wfmh.org.pl wrote:
> A small thing - the warnings about control reaching the end of non-
> void function are now issued also when the control terminates via
> exit(). AFAIR it cc65 only checks whether there is any return
> statement, which in this case doesn't work as expected. I am only
> flagging this as I don't know whether it is easy to correct / take
> into account.

Thanks for the hint. I will offer a solution for this in the next major
release. For now, you will have to add a return statement after exit to
silence the compiler.

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 Sun Oct 18 19:05:41 2009

This archive was generated by hypermail 2.1.8 : 2009-10-18 19:05:43 CEST