| delorie.com/archives/browse.cgi | search |
| From: | "Matthew Conte" <spam AT somebody DOT else> |
| Newsgroups: | comp.os.msdos.djgpp |
| References: | <19981006122045 DOT 25193 DOT 00007641 AT ng117 DOT aol DOT com> |
| Subject: | Re: Another silly question! |
| Lines: | 19 |
| X-Newsreader: | Microsoft Outlook Express 4.72.3155.0 |
| X-MimeOLE: | Produced By Microsoft MimeOLE V4.72.3155.0 |
| Message-ID: | <y9sS1.685$l93.3599018@proxye1.nycap.rr.com> |
| Date: | Tue, 6 Oct 1998 13:07:19 -0400 |
| NNTP-Posting-Host: | 24.92.55.44 |
| X-Complaints-To: | abuse AT nycap DOT rr DOT com |
| X-Trace: | proxye1.nycap.rr.com 907693790 24.92.55.44 (Tue, 06 Oct 1998 13:09:50 EDT) |
| NNTP-Posting-Date: | Tue, 06 Oct 1998 13:09:50 EDT |
| To: | djgpp AT delorie DOT com |
| DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
| Reply-To: | djgpp AT delorie DOT com |
>jerk( )
>{
> printf("Bill is a jerk.\n");
>}
>
>How come I don't get any prototyping warnings or errors when
>I compile this? It compiles fine... no warnings or nothin'
Try adding -Wall to your compile line. If you don't, gcc will suppress the two warnings:
Warning: return-type defaults to `int'
Warning: control reaches end of non-void function
Later,
Matt.
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |