From owner-freebsd-current Fri Nov 29 15:22: 7 2002 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E60BC37B401; Fri, 29 Nov 2002 15:22:05 -0800 (PST) Received: from dragon.nuxi.com (trang.nuxi.com [66.93.134.19]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3701A43E88; Fri, 29 Nov 2002 15:22:05 -0800 (PST) (envelope-from obrien@NUXI.com) Received: from dragon.nuxi.com (obrien@localhost [127.0.0.1]) by dragon.nuxi.com (8.12.6/8.12.2) with ESMTP id gATNLuqe027635; Fri, 29 Nov 2002 15:21:56 -0800 (PST) (envelope-from obrien@dragon.nuxi.com) Received: (from obrien@localhost) by dragon.nuxi.com (8.12.6/8.12.6/Submit) id gATNKfeW027625; Fri, 29 Nov 2002 15:20:41 -0800 (PST) Date: Fri, 29 Nov 2002 15:20:41 -0800 From: "David O'Brien" To: Poul-Henning Kamp Cc: current@freebsd.org Subject: Re: suggested WARNS makefile magic Message-ID: <20021129232041.GA27528@dragon.nuxi.com> Reply-To: obrien@freebsd.org Mail-Followup-To: David O'Brien , Poul-Henning Kamp , current@freebsd.org References: <1881.1038557926@critter.freebsd.dk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1881.1038557926@critter.freebsd.dk> User-Agent: Mutt/1.4i X-Operating-System: FreeBSD 5.0-CURRENT Organization: The NUXI BSD Group X-Pgp-Rsa-Fingerprint: B7 4D 3E E9 11 39 5F A3 90 76 5D 69 58 D9 98 7A X-Pgp-Rsa-Keyid: 1024/34F9F9D5 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Fri, Nov 29, 2002 at 09:18:46AM +0100, Poul-Henning Kamp wrote: > > Right now, if I want to ensure that a particular program compiles > with a WARNS level of no less than 3, I have to put this in the > Makefile: > > WARNS?= 3 > .if ${WARNS} < 3 > WARNS= 3 > .endif Is this program w/in /usr/src or something else? If with-in /usr/src, is sounds like we have Makefile's battling each other and we should fix that. Your change would get in the way of toolchain upgrades; as one often wants to do "make WARNS=0" for the first couple of compiles while working on the update. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message