Date: Fri, 17 May 2002 04:40:27 -0700 From: Peter Wemm <peter@wemm.org> To: "J. Mallett" <jmallett@FreeBSD.org> Cc: Brian Somers <brian@Awfulhak.org>, Mike Barcroft <mike@FreeBSD.org>, cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/usr.bin/tee tee.c Message-ID: <20020517114027.CD05D39EC@overcee.wemm.org> In-Reply-To: <20020517111900.GA26515@FreeBSD.ORG>
next in thread | previous in thread | raw e-mail | index | archive | help
"J. Mallett" wrote: > On Fri, May 17, 2002 at 12:11:34PM +0100, Brian Somers wrote: > > > So control of the main() function doesn't end without a return as the > > > compiler thinks because it doesn't realise exit() eats program flow. > > > > exit() is marked _dead2, ie, it doesn't return. > > Then it must be getting implicitly declared or prototyped somewhere else. I > had GCC complain on one of the cluster machines. If that happened then an include was missing or something else was wrong that prevented the __dead2 marking in <unistd.h> from working. If the main() thing is fixed, tee is WARNS=max clean with both return() and exit(). Cheers, -Peter -- Peter Wemm - peter@wemm.org; peter@FreeBSD.org; peter@yahoo-inc.com "All of this is for nothing if we don't go to the stars" - JMS/B5 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?20020517114027.CD05D39EC>