home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: gnu.g++.help
- Path: sparky!uunet!munnari.oz.au!cs.mu.OZ.AU!munta.cs.mu.OZ.AU!fjh
- From: fjh@munta.cs.mu.OZ.AU (Fergus James HENDERSON)
- Subject: Re: Is this Warning message correct ? (g++-2.3.2)
- Message-ID: <9234801.7448@mulga.cs.mu.OZ.AU>
- Sender: news@cs.mu.OZ.AU
- Organization: Computer Science, University of Melbourne, Australia
- References: <1992Dec11.155734.16531@ugle.unit.no>
- Date: Sat, 12 Dec 1992 14:57:49 GMT
- Lines: 20
-
- andersm@colargol.edb.tih.no (Anders Myrvold) writes:
-
- >void main(void)
- [...]
- >
- >When I compile this with gcc-2.3.2 I get no warnings at all.
- >When I compile this with native cc I get no warnings at all.
- >When I compile this with g++-2.3.2 I get:
- >alpha:~# gcc c.cc
- >c.cc:4: warning: return type for `main' changed to integer type
-
- This is definitely correct. The return type for main() should be int.
-
- (Sorry, I can't help with the other warning message.)
-
- --
- Fergus Henderson fjh@munta.cs.mu.OZ.AU
- This .signature virus is a self-referential statement that is true - but
- you will only be able to consistently believe it if you copy it to your own
- .signature file!
-