From owner-freebsd-current Fri Nov 29 6:56:55 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 07C6637B401 for ; Fri, 29 Nov 2002 06:56:54 -0800 (PST) Received: from critter.freebsd.dk (critter.freebsd.dk [212.242.86.163]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1D2D743E88 for ; Fri, 29 Nov 2002 06:56:53 -0800 (PST) (envelope-from phk@critter.freebsd.dk) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.12.6/8.12.6) with ESMTP id gAT8IkU6001882 for ; Fri, 29 Nov 2002 09:18:46 +0100 (CET) (envelope-from phk@critter.freebsd.dk) To: current@freebsd.org Subject: suggested WARNS makefile magic From: Poul-Henning Kamp Date: Fri, 29 Nov 2002 09:18:46 +0100 Message-ID: <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 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