From owner-cvs-all Mon May 28 2:41:20 2001 Delivered-To: cvs-all@freebsd.org Received: from ringworld.nanolink.com (ringworld.nanolink.com [195.24.48.13]) by hub.freebsd.org (Postfix) with SMTP id DAFC337B443 for ; Mon, 28 May 2001 02:41:07 -0700 (PDT) (envelope-from roam@orbitel.bg) Received: (qmail 3895 invoked by uid 1000); 28 May 2001 09:40:11 -0000 Date: Mon, 28 May 2001 12:40:11 +0300 From: Peter Pentchev To: Sheldon Hearn Cc: Dima Dorfman , 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> Mail-Followup-To: Sheldon Hearn , Dima Dorfman , cvs-committers@freebsd.org, cvs-all@freebsd.org References: <200105280055.f4S0trc43261@freefall.freebsd.org> <50418.991042601@axl.fw.uunet.co.za> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <50418.991042601@axl.fw.uunet.co.za>; from sheldonh@uunet.co.za on Mon, May 28, 2001 at 11:36:41AM +0200 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, 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