From owner-freebsd-arch Tue Dec 4 13:11:58 2001 Delivered-To: freebsd-arch@freebsd.org Received: from dragon.nuxi.com (trang.nuxi.com [66.92.13.169]) by hub.freebsd.org (Postfix) with ESMTP id 7293537B416 for ; Tue, 4 Dec 2001 13:11:56 -0800 (PST) Received: (from obrien@localhost) by dragon.nuxi.com (8.11.6/8.11.1) id fB4LBu303554 for freebsd-arch@freebsd.org; Tue, 4 Dec 2001 13:11:56 -0800 (PST) (envelope-from obrien) Date: Tue, 4 Dec 2001 13:11:52 -0800 From: "David O'Brien" To: freebsd-arch@freebsd.org Subject: WARNS granularity Message-ID: <20011204131152.A73842@dragon.nuxi.com> Reply-To: obrien@freebsd.org Mail-Followup-To: freebsd-arch@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i X-Operating-System: FreeBSD 5.0-CURRENT Organization: The NUXI BSD group X-Pgp-Rsa-Fingerprint: B7 4D 3E E9 11 39 5F A3 90 76 5D 69 58 D9 98 7A X-Pgp-Rsa-Keyid: 1024/34F9F9D5 Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG IMO our WARNS values {0,1,2} are not granular enough. I would like to make 1 ==> -Werror only. This would help prevent regressions with sources that do not produces warnings with the default GCC warnings. WARNS=2 would add: -Wall I think having a WARNS level that is just -Wall is useful as -Wall is the most common thing GCC users compile with if they use any warnings at all. WARNS=3 would be the same as today's `1', which adds: -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-uninitialized WARNS=4 would be the same as today's `2', which adds: -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow Objections? Improvements to the idea? -- -- David (obrien@FreeBSD.org) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message