From owner-freebsd-arch Sat Oct 26 10:13:55 2002 Delivered-To: freebsd-arch@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6ADDD37B401 for ; Sat, 26 Oct 2002 10:13:54 -0700 (PDT) Received: from harmony.village.org (rover.bsdimp.com [204.144.255.66]) by mx1.FreeBSD.org (Postfix) with ESMTP id C1ADE43E65 for ; Sat, 26 Oct 2002 10:13:38 -0700 (PDT) (envelope-from imp@bsdimp.com) Received: from localhost (warner@rover2.village.org [10.0.0.1]) by harmony.village.org (8.12.3/8.12.3) with ESMTP id g9QHDYpk016484 for ; Sat, 26 Oct 2002 11:13:34 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Sat, 26 Oct 2002 11:13:12 -0600 (MDT) Message-Id: <20021026.111312.21077495.imp@bsdimp.com> To: arch@freebsd.org Subject: NO_WERROR and the kernel From: "M. Warner Losh" X-Mailer: Mew version 2.1 on Emacs 21.2 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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 Is there a reason that NO_WERROR doesn't work with the kernel? Would there be a reason not to include the following patch? Warner Index: kern.pre.mk =================================================================== RCS file: /cache/ncvs/src/sys/conf/kern.pre.mk,v retrieving revision 1.19 diff -u -r1.19 kern.pre.mk --- kern.pre.mk 17 Sep 2002 09:07:06 -0000 1.19 +++ kern.pre.mk 26 Oct 2002 17:11:51 -0000 @@ -48,7 +48,11 @@ .endif .endif DEFINED_PROF= ${PROF} +.if !defined(NO_WERROR) WERROR?= -Werror +.else +WERROR?= +.endif # Put configuration-specific C flags last (except for ${PROF}) so that they # can override the others. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message