From owner-cvs-all Fri Dec 14 10:33:30 2001 Delivered-To: cvs-all@freebsd.org Received: from whale.sunbay.crimea.ua (whale.sunbay.crimea.ua [212.110.138.65]) by hub.freebsd.org (Postfix) with ESMTP id CE1B537B419; Fri, 14 Dec 2001 10:33:10 -0800 (PST) Received: (from ru@localhost) by whale.sunbay.crimea.ua (8.11.6/8.11.2) id fBEIWJL26221; Fri, 14 Dec 2001 20:32:19 +0200 (EET) (envelope-from ru) Date: Fri, 14 Dec 2001 20:32:19 +0200 From: Ruslan Ermilov To: Luigi Rizzo Cc: Mark Murray , 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> References: <20011214094310.A25238@dragon.nuxi.com> <200112141803.fBEI3MU02957@grimreaper.grondar.org> <20011214102915.L49775@iguana.aciri.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20011214102915.L49775@iguana.aciri.org> User-Agent: Mutt/1.3.23i Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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