Re: [cc65] return vs. exit()

From: <Maspethrose71aol.com>
Date: 2009-10-17 03:27:34
exit() is technically a function, but it should  be easy for the compiler 
to detect its usage.  Simply detect if the  function is used the same way 
that return is  detected.

------------
Joseph Rose, a.k.a. Harry Potter
Working  magic in the computer community...or at least striving to! :(

In a  message dated 10/16/2009 8:32:28 P.M. Eastern Daylight Time,  
silverdr@wfmh.org.pl writes:
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.

Regards,

-- 
SD!


P.  S.

ShangHai:cc65_2.13 silverdr$ cc65 --version
cc65 V2.13.0
SVN  version:  4371

----------------------------------------------------------------------
To  unsubscribe from the list send mail to majordomo@musoftware.de with
the  string "unsubscribe cc65" in the body(!) of the mail.  

----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Sat Oct 17 03:27:56 2009

This archive was generated by hypermail 2.1.8 : 2009-10-17 03:27:58 CEST