home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / gnu / g / help / 1577 < prev    next >
Encoding:
Text File  |  1992-12-12  |  1.1 KB  |  32 lines

  1. Newsgroups: gnu.g++.help
  2. Path: sparky!uunet!munnari.oz.au!cs.mu.OZ.AU!munta.cs.mu.OZ.AU!fjh
  3. From: fjh@munta.cs.mu.OZ.AU (Fergus James HENDERSON)
  4. Subject: Re: Is this Warning message correct ? (g++-2.3.2)
  5. Message-ID: <9234801.7448@mulga.cs.mu.OZ.AU>
  6. Sender: news@cs.mu.OZ.AU
  7. Organization: Computer Science, University of Melbourne, Australia
  8. References: <1992Dec11.155734.16531@ugle.unit.no>
  9. Date: Sat, 12 Dec 1992 14:57:49 GMT
  10. Lines: 20
  11.  
  12. andersm@colargol.edb.tih.no (Anders Myrvold) writes:
  13.  
  14. >void main(void)
  15. [...]
  16. >
  17. >When I compile this with gcc-2.3.2 I get no warnings at all. 
  18. >When I compile this with native cc I get no warnings at all.
  19. >When I compile this with g++-2.3.2 I get:
  20. >alpha:~# gcc c.cc
  21. >c.cc:4: warning: return type for `main' changed to integer type
  22.  
  23. This is definitely correct. The return type for main() should be int.
  24.  
  25. (Sorry, I can't help with the other warning message.)
  26.  
  27. -- 
  28. Fergus Henderson             fjh@munta.cs.mu.OZ.AU      
  29. This .signature virus is a self-referential statement that is true - but 
  30. you will only be able to consistently believe it if you copy it to your own
  31. .signature file!
  32.