Date: Fri, 29 Nov 2002 20:45:19 +0200 From: Giorgos Keramidas <keramida@ceid.upatras.gr> To: Poul-Henning Kamp <phk@freebsd.org> Cc: current@freebsd.org Subject: Re: suggested WARNS makefile magic Message-ID: <20021129184519.GD1092@gothmog.gr> In-Reply-To: <1881.1038557926@critter.freebsd.dk> References: <1881.1038557926@critter.freebsd.dk>
next in thread | previous in thread | raw e-mail | index | archive | help
On 2002-11-29 09:18, Poul-Henning Kamp <phk@FreeBSD.ORG> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20021129184519.GD1092>
