Date: Wed, 19 Dec 2001 11:54:47 +0200 From: Mark Murray <mark@grondar.za> To: Harti Brandt <brandt@fokus.gmd.de> Cc: cvs-all@FreeBSD.org, cvs-committers@FreeBSD.org Subject: Re: Are prototypes for main() illegal by any standard ? (was Re: Message-ID: <200112190954.fBJ9slO79782@grimreaper.grondar.org> In-Reply-To: <20011218164331.F414-100000@beagle.fokus.gmd.de> ; from Harti Brandt <brandt@fokus.gmd.de> "Tue, 18 Dec 2001 16:46:08 %2B0100." References: <20011218164331.F414-100000@beagle.fokus.gmd.de>
next in thread | previous in thread | raw e-mail | index | archive | help
[ 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200112190954.fBJ9slO79782>