From owner-cvs-all Thu Dec 20 5: 1: 9 2001 Delivered-To: cvs-all@freebsd.org Received: from storm.FreeBSD.org.uk (storm.FreeBSD.org.uk [194.242.139.170]) by hub.freebsd.org (Postfix) with ESMTP id 7B9C337B416; Thu, 20 Dec 2001 05:00:55 -0800 (PST) Received: (from uucp@localhost) by storm.FreeBSD.org.uk (8.11.6/8.11.6) with UUCP id fBKD0fd35269; Thu, 20 Dec 2001 13:00:41 GMT (envelope-from mark@grondar.za) Received: from grondar.za (mark@localhost [127.0.0.1]) by grimreaper.grondar.org (8.11.6/8.11.6) with ESMTP id fBJ9slO79782; Wed, 19 Dec 2001 11:54:47 +0200 (SAST) (envelope-from mark@grondar.za) Message-Id: <200112190954.fBJ9slO79782@grimreaper.grondar.org> To: Harti Brandt Cc: cvs-all@FreeBSD.org, cvs-committers@FreeBSD.org Subject: Re: Are prototypes for main() illegal by any standard ? (was Re: References: <20011218164331.F414-100000@beagle.fokus.gmd.de> In-Reply-To: <20011218164331.F414-100000@beagle.fokus.gmd.de> ; from Harti Brandt "Tue, 18 Dec 2001 16:46:08 +0100." Date: Wed, 19 Dec 2001 11:54:47 +0200 From: Mark Murray 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 [ Utterly ridiculous cc: list trimmed ] Said Harti Brandt: > That makes sense. Seeing someone prototyping main() makes me always > thinking he is going to make something unusal. Well, trying to kill the warning in a style-compatible way is often problematical, and can lead to such things. GCC 2.95.n has whined at me about int main() { : } But is placated by int main(void) { : } "But this breaks K&R" (grrr), or the fact that it is incompatible with the existing style of the code may get me to put a int main __P((void)); before it. M -- o Mark Murray \_ FreeBSD Services Limited O.\_ Warning: this .sig is umop ap!sdn To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message