Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 29 Nov 2002 09:18:46 +0100
From:      Poul-Henning Kamp <phk@freebsd.org>
To:        current@freebsd.org
Subject:   suggested WARNS makefile magic
Message-ID:  <1881.1038557926@critter.freebsd.dk>

next in thread | raw e-mail | index | archive | help

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.

-- 
Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
phk@FreeBSD.ORG         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe
Never attribute to malice what can adequately be explained by incompetence.

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?1881.1038557926>