🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.bug
Article #6124

Re: Feature request: warn on "void main"

#6124
From: Robert Dick
Date: Thu, 05 Dec 1996 00:00
10 lines
952 bytes
In article <x7viahrdc0.fsf@hexadecimal.uoregon.edu> stevev@hexadecimal.uoregon.edu (Steve VanDevender) writes:

>void main() isn't bad other than it returns an unknown status value to
>exit(); if the program in question isn't depended on to return a
>meaningful exit status then there is no problem.

No.  Check out the ANSI-C FAQ at rtfm.mit.edu.

-Robert Dick (dickrp@wckn.dorm.clarkson.edu)-
Technical Details
Message-ID: <586eto$mag@cnn.Princeton.EDU>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <199612010425.XAA09048@cutter-john.mit.edu>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 113d02,da03ab9b7be97761
X-Google-Attributes: gid113d02,public
From: dickrp@ee.Princeton.EDU (Robert Dick)
Subject: Re: Feature request: warn on "void main"
Date: 1996/12/05
Message-ID: <586eto$mag@cnn.Princeton.EDU>
X-Deja-AN: 202488993
sender: bug-gcc-request@prep.ai.mit.edu
references: <199612010425.XAA09048@cutter-john.mit.edu>
organization: Princeton University
x-gateway: relay1.UU.NET from bug-gcc to gnu.gcc.bug; Thu, 5 Dec 1996 07:31:45 EST
newsgroups: gnu.gcc.bug