Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 28 May 2001 13:49:55 +0200
From:      Sheldon Hearn <sheldonh@starjuice.net>
To:        Bruce Evans <bde@zeta.org.au>
Cc:        Dima Dorfman <dd@freebsd.org>, cvs-committers@freebsd.org, cvs-all@freebsd.org, obrien@freebsd.org
Subject:   Re: cvs commit: src/usr.bin/jot Makefile jot.c 
Message-ID:  <52963.991050595@axl.fw.uunet.co.za>
In-Reply-To: Your message of "Mon, 28 May 2001 21:43:58 %2B1000." <Pine.BSF.4.21.0105282121480.1612-100000@besplex.bde.org> 

next in thread | previous in thread | raw e-mail | index | archive | help


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




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