From owner-cvs-all Sun May 20 15:57:29 2001 Delivered-To: cvs-all@freebsd.org Received: from obsecurity.dyndns.org (adsl-63-207-60-32.dsl.lsan03.pacbell.net [63.207.60.32]) by hub.freebsd.org (Postfix) with ESMTP id 368A037B424; Sun, 20 May 2001 15:57:22 -0700 (PDT) (envelope-from kris@obsecurity.org) Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id CB2A466E20; Sun, 20 May 2001 15:57:21 -0700 (PDT) Date: Sun, 20 May 2001 15:57:21 -0700 From: Kris Kennaway To: Bruce Evans Cc: Ruslan Ermilov , Peter Wemm , Warner Losh , Greg Lehey , Kris Kennaway , cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/usr.bin/scrshot Makefile Message-ID: <20010520155721.C37083@xor.obsecurity.org> References: <20010520140748.D3338@sunbay.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="JgQwtEuHJzHdouWu" Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from bde@zeta.org.au on Sun, May 20, 2001 at 09:41:15PM +1000 Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --JgQwtEuHJzHdouWu Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, May 20, 2001 at 09:41:15PM +1000, Bruce Evans wrote: > On Sun, 20 May 2001, Ruslan Ermilov wrote: >=20 > > On Fri, May 18, 2001 at 10:24:23PM -0700, Peter Wemm wrote: > > > Personally, I think we should implement the WARNS make variable from > > > NetBSD. It works there. There is no need to be gratuitously differe= nt. >=20 > This is implemented now. >=20 > > We already have DEBUG_FLAGS in bsd.prog.mk and bsd.lib.mk. > > That should be sufficient for -Wfoo stuff. >=20 > I think DEBUG_FLAGS is > a) for debugging flags (-g, etc.) :-). > b) completely under use control. Currently, only a couple of Makefiles u= nder > usr.sbin/acpi misuse it (but only in commented out code). >=20 > There is also CWARNFLAGS, which used to be only for kernels... This is now available for userland as well. The problem I found is that if you set CFLAGS in /etc/make.conf to set your "usual settings", you can't override it on the command-line when you want more warnings. You can now use CWARNFLAGS to do that, e.g.: setenv CWARNFLAGS '${BDECFLAGS}' Kris --JgQwtEuHJzHdouWu Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.5 (FreeBSD) Comment: For info see http://www.gnupg.org iD8DBQE7CEvQWry0BWjoQKURAnFHAJ0RakRnYy5P9FN4ZzUXe3kdXx+/bwCeJ4Ak noykpWu/NcOG9afl3IDjk7M= =BNvv -----END PGP SIGNATURE----- --JgQwtEuHJzHdouWu-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message