| delorie.com/archives/browse.cgi | search |
| From: | "A. Sinan Unur" <asu1 AT cornell DOT edu> |
| Newsgroups: | comp.os.msdos.djgpp |
| Subject: | `return' with no value, in function returning non-void (was Re: Clearing screens) |
| Date: | 18 Oct 2001 16:20:37 GMT |
| Organization: | Cornell University |
| Lines: | 27 |
| Sender: | asu1 AT cornell DOT invalid (on 128.253.251.163) |
| Message-ID: | <Xns913E7D7DCC53AASINANUNUR@132.236.56.8> |
| References: | <16a9b8d3 DOT 0110180325 DOT 4f2ff5e AT posting DOT google DOT com> <9qmfe4$iqt$1 AT nets3 DOT rz DOT RWTH-Aachen DOT DE> <9qmuod$fu2$1 AT cyan DOT nl DOT gxn DOT net> |
| NNTP-Posting-Host: | 128.253.251.163 |
| X-Trace: | news01.cit.cornell.edu 1003422037 21594 128.253.251.163 (18 Oct 2001 16:20:37 GMT) |
| X-Complaints-To: | usenet AT news01 DOT cit DOT cornell DOT edu |
| NNTP-Posting-Date: | 18 Oct 2001 16:20:37 GMT |
| User-Agent: | Xnews/4.06.22 |
| To: | djgpp AT delorie DOT com |
| DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
| Reply-To: | djgpp AT delorie DOT com |
"Bart van den Burg" <bart AT bart99 DOT tmfweb DOT nl> wrote in
news:9qmuod$fu2$1 AT cyan DOT nl DOT gxn DOT net:
> is it a DJGPP WIN2k bug that an int function doesn't have to return
> anything?
Change the subject line when you change the topic of a thread.
Now, I am not sure what you mean. If you do the following:
/* i.c */
int blah(void)
{
return;
}
C:\var>gcc -c i.c -Wall
i.c: In function `blah':
i.c:3: warning: `return' with no value, in function returning non-void
do you not get a warning under W2K?
Sinan.
--
--------------------------------
A. Sinan Unur
http://www.unur.com/
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |