From owner-cvs-all Fri May 17 4:40:34 2002 Delivered-To: cvs-all@freebsd.org Received: from evilpete.dyndns.org (12-232-26-46.client.attbi.com [12.232.26.46]) by hub.freebsd.org (Postfix) with ESMTP id 6344D37B401; Fri, 17 May 2002 04:40:28 -0700 (PDT) Received: from overcee.wemm.org ([10.0.0.3]) by evilpete.dyndns.org (8.11.6/8.11.6) with ESMTP id g4HBeS108799; Fri, 17 May 2002 04:40:28 -0700 (PDT) (envelope-from peter@wemm.org) Received: from wemm.org (localhost [127.0.0.1]) by overcee.wemm.org (Postfix) with ESMTP id CD05D39EC; Fri, 17 May 2002 04:40:27 -0700 (PDT) (envelope-from peter@wemm.org) X-Mailer: exmh version 2.5 07/13/2001 with nmh-1.0.4 To: "J. Mallett" Cc: Brian Somers , Mike Barcroft , cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/usr.bin/tee tee.c In-Reply-To: <20020517111900.GA26515@FreeBSD.ORG> Date: Fri, 17 May 2002 04:40:27 -0700 From: Peter Wemm Message-Id: <20020517114027.CD05D39EC@overcee.wemm.org> 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 "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 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