Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 14 Dec 2001 20:32:19 +0200
From:      Ruslan Ermilov <ru@FreeBSD.org>
To:        Luigi Rizzo <rizzo@aciri.org>
Cc:        Mark Murray <mark@grondar.za>, obrien@FreeBSD.org, cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   Re: Are prototypes for main() illegal by any standard ? (was Re: cvs commit: src/bin/rm rm.c src/usr.sbin/chown chown.c src/usr.sbin/dev_mkdb dev_mkdb.c
Message-ID:  <20011214203219.F16945@sunbay.com>
In-Reply-To: <20011214102915.L49775@iguana.aciri.org>
References:  <20011214094310.A25238@dragon.nuxi.com> <200112141803.fBEI3MU02957@grimreaper.grondar.org> <20011214102915.L49775@iguana.aciri.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Dec 14, 2001 at 10:29:15AM -0800, Luigi Rizzo wrote:
> Anyways, i think we should not make a big deal out of this.
> 
> Is it illegal, by any standard, to supply prototypes for main() ?
> 
> If not, what is wrong in casually adding them
> whenever you happen to touch those files ?
> 
There's nothing with main() prototyping.  The other question is
IF that prototyping is required.  Your reasoning for a commit
is wrong; in -CURRENT, -Wmissing-prototypes and -Werror doesn't
cause an error if main() is not prototyped.

> And the problem is not as widespread as Ruslan suggested. Out of
> the 40-50 binaries in my picobsd config, only 3 caused -Werror
> to block.
> 
How many from these 40-50 binaries are WARNSified?


Cheers,
-- 
Ruslan Ermilov		Oracle Developer/DBA,
ru@sunbay.com		Sunbay Software AG,
ru@FreeBSD.org		FreeBSD committer,
+380.652.512.251	Simferopol, Ukraine

http://www.FreeBSD.org	The Power To Serve
http://www.oracle.com	Enabling The Information Age

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20011214203219.F16945>