Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 28 May 2001 12:40:11 +0300
From:      Peter Pentchev <roam@orbitel.bg>
To:        Sheldon Hearn <sheldonh@uunet.co.za>
Cc:        Dima Dorfman <dd@freebsd.org>, cvs-committers@freebsd.org, cvs-all@freebsd.org
Subject:   Re: cvs commit: src/usr.bin/jot Makefile jot.c
Message-ID:  <20010528124011.G8450@ringworld.oblivion.bg>
In-Reply-To: <50418.991042601@axl.fw.uunet.co.za>; from sheldonh@uunet.co.za on Mon, May 28, 2001 at 11:36:41AM %2B0200
References:  <200105280055.f4S0trc43261@freefall.freebsd.org> <50418.991042601@axl.fw.uunet.co.za>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, May 28, 2001 at 11:36:41AM +0200, Sheldon Hearn wrote:
> 
> 
> On Sun, 27 May 2001 17:55:52 MST, Dima Dorfman wrote:
> 
> >   Modified files:
> >     usr.bin/jot          Makefile jot.c 
> >   Log:
> >   Silence warnings and compile with WARNS=2 on i386 and alpha.
> 
> Since when do you have to add a prototype for main()?!

To silence gcc warnings in K&R-style code, where main() is not defined as
int
main(int argc, char *argv[]),

but rather as:
int
main(argc, argv)
	int argc;
	char *argv[];

gcc does complain in this case.

G'luck,
Peter

-- 
I've heard that this sentence is a rumor.

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?20010528124011.G8450>