From owner-cvs-all Mon May 28 4:50:40 2001 Delivered-To: cvs-all@freebsd.org Received: from lists01.iafrica.com (lists01.iafrica.com [196.7.0.141]) by hub.freebsd.org (Postfix) with ESMTP id E699537B422; Mon, 28 May 2001 04:50:31 -0700 (PDT) (envelope-from sheldonh@uunet.co.za) Received: from nwl.fw.uunet.co.za ([196.31.2.162]) by lists01.iafrica.com with esmtp (Exim 3.12 #2) id 154LXY-0000rS-00; Mon, 28 May 2001 13:50:28 +0200 Received: (from nobody@localhost) by nwl.fw.uunet.co.za (8.8.8/8.6.9) id NAA15257; Mon, 28 May 2001 13:50:27 +0200 (SAST) Received: by nwl.fw.uunet.co.za via recvmail id 15167; Mon May 28 13:49:55 2001 Received: from sheldonh (helo=axl.fw.uunet.co.za) by axl.fw.uunet.co.za with local-esmtp (Exim 3.22 #1) id 154LX1-000DmG-00; Mon, 28 May 2001 13:49:55 +0200 From: Sheldon Hearn To: Bruce Evans Cc: Dima Dorfman , cvs-committers@freebsd.org, cvs-all@freebsd.org, obrien@freebsd.org Subject: Re: cvs commit: src/usr.bin/jot Makefile jot.c In-reply-to: Your message of "Mon, 28 May 2001 21:43:58 +1000." Date: Mon, 28 May 2001 13:49:55 +0200 Message-ID: <52963.991050595@axl.fw.uunet.co.za> 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 Mon, 28 May 2001 21:43:58 +1000, Bruce Evans wrote: > > Since when do you have to add a prototype for main()?! > > Since -Wmissing-prototypes was added to CFLAGS (by WARNS=2 or BDECFLAGS) > to detect the potential error of not declaring extern functions in > the right place (which is never in *.c). Bleh. I think this is stupid. The compiler we use shouldn't force us into unnecessary source work-arounds. Not providing a forward declaration for main() is _always_ okay because it's _never_ called by any other subroutine in the module. David, how would you feel about a local hack to gcc for this? Ciao, Sheldon. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message