🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.bug
Article #6109

Re: Feature request: warn on "void main"

#6109
From: Steven Michael ROBBINS
Date: Sun, 01 Dec 1996 00:00
12 lines
1203 bytes
In article <199612010425.XAA09048@cutter-john.mit.edu>,
Greg Hudson <ghudson@mit.edu> wrote:
> I've recently observed some free software authors use the
> justification "it shuts up gcc" when asked why they declare main() as
> void.  (Presumably, they're using -Wall).  Since "void main" is not
> correct according to ANSI, I would appreciate it if the next version
> of gcc could warn about it.  I would advocate warning about it in all
> cases, but warning about it only when -Wall is set is fine.

I second this.  And it's not just fee software authors that do this;
I've seen it in commercial software.
Technical Details
Message-ID: <57s7qr$aap@sifon.cc.mcgill.ca>
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: stever@CS.McGill.CA (Steven Michael ROBBINS)
Subject: Re: Feature request: warn on "void main"
Date: 1996/12/01
Message-ID: <57s7qr$aap@sifon.cc.mcgill.ca>
X-Deja-AN: 201715297
sender: bug-gcc-request@prep.ai.mit.edu
references: <199612010425.XAA09048@cutter-john.mit.edu>
organization: SOCS, McGill University, Montreal, Quebec, CANADA
x-gateway: relay3.UU.NET from bug-gcc to gnu.gcc.bug; Sun, 1 Dec 1996 10:23:09 EST
newsgroups: gnu.gcc.bug