From owner-freebsd-current Fri Nov 29 14:18:21 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 C10FE37B401; Fri, 29 Nov 2002 14:18:19 -0800 (PST) Received: from mailsrv.otenet.gr (mailsrv.otenet.gr [195.170.0.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6679443E9C; Fri, 29 Nov 2002 14:18:18 -0800 (PST) (envelope-from keramida@ceid.upatras.gr) Received: from gothmog.gr (patr364-a19.otenet.gr [195.167.109.51]) by mailsrv.otenet.gr (8.12.6/8.12.6) with ESMTP id gATMIFr7001497; Sat, 30 Nov 2002 00:18:16 +0200 (EET) Received: from gothmog.gr (gothmog [127.0.0.1]) by gothmog.gr (8.12.6/8.12.6) with ESMTP id gATMHY5h001272; Sat, 30 Nov 2002 00:18:14 +0200 (EET) (envelope-from keramida@ceid.upatras.gr) Received: (from keramida@localhost) by gothmog.gr (8.12.6/8.12.6/Submit) id gATIjKT0018851; Fri, 29 Nov 2002 20:45:20 +0200 (EET) (envelope-from keramida@ceid.upatras.gr) Date: Fri, 29 Nov 2002 20:45:19 +0200 From: Giorgos Keramidas To: Poul-Henning Kamp Cc: current@freebsd.org Subject: Re: suggested WARNS makefile magic Message-ID: <20021129184519.GD1092@gothmog.gr> 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> 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 2002-11-29 09:18, 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 > > That is somewhat cumbersome and obviously some relatively simple > changes to src/share/mk/* could make it possible to simply write: > > LOWWARNS= 3 > > To indicate that this program is WARNS clean _at least_ to level 3, > and always should be checked at 3 or above. So what happens when one sets: LOWWARNS?=3 ? The original isn't very bad, imho. Plus, it's also very clean & precise in what it does. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message