delorie.com/archives/browse.cgi | search |
From: | Hans-Bernhard Broeker <broeker AT physik DOT rwth-aachen DOT de> |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | Re: compiler doesn't catch missing semicolon after struct |
Date: | 10 Oct 2001 17:10:16 GMT |
Organization: | Aachen University of Technology (RWTH) |
Lines: | 19 |
Message-ID: | <9q1vdo$34r$1@nets3.rz.RWTH-Aachen.DE> |
References: | <c3114d1f DOT 0110091227 DOT 17603d3b AT posting DOT google DOT com> <3BC35FB1 DOT FF1958C AT earthlink DOT net> <1hu8stke235jh08aogbbc44rojtm115j23 AT 4ax DOT com> |
NNTP-Posting-Host: | acp3bf.physik.rwth-aachen.de |
X-Trace: | nets3.rz.RWTH-Aachen.DE 1002733816 3227 137.226.32.75 (10 Oct 2001 17:10:16 GMT) |
X-Complaints-To: | abuse AT rwth-aachen DOT de |
NNTP-Posting-Date: | 10 Oct 2001 17:10:16 GMT |
Originator: | broeker@ |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Reply-To: | djgpp AT delorie DOT com |
Radical wrote: > defining main simply: > main(...argv,...argc) > should indeed DEFAULT to the int main(...argv,...argc) construct, It shouldn't. Not since ANSI C99 was ratified, which disallowed implicit function return types, among other things. > but doesn't (older compilers would have no problemwith this). It does, unless you call for C99 compatibility. But it generates a (perfectly deserved) warning. -- Hans-Bernhard Broeker (broeker AT physik DOT rwth-aachen DOT de) Even if all the snow were burnt, ashes would remain.
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |