Article View: gnu.g++.help
Article #612Re: Is this Warning message correct ? (g++-2.3.2)
From: Fergus James HENDERSON
Date: Sat, 12 Dec 1992 14:57
Date: Sat, 12 Dec 1992 14:57
20 lines
1155 bytes
1155 bytes
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!
Technical Details
Message-ID:
<9234801.7448@mulga.cs.mu.OZ.AU>Path:
arc1-ca.pugleaf.net!sparky!uunet!munnari.oz.au!cs.mu.OZ.AU!munta.cs.mu.OZ.AU!fjhReferences:
<1992Dec11.155734.16531@ugle.unit.no>Show Full Headers
Complete Article Headers
Newsgroups: gnu.g++.help Path: arc1-ca.pugleaf.net!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