Subject: misc/3301: Allow -Werror to be turned off
To: None <>
From: Simon J. Gerraty <>
List: netbsd-bugs
Date: 03/08/1997 09:11:52
>Number:         3301
>Category:       misc
>Synopsis:       don't hard code -Werror in
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    misc-bug-people (Misc Bug People)
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Fri Mar  7 14:20:03 1997
>Originator:     Simon J. Gerraty
Zen Programming...
>Release:        Feb22
System: NetBSD 1.2C NetBSD 1.2C (ZEN) #5: Mon Mar 3 16:18:58 EST 1997 i386

Often when building current, some parts of the system will not compile
with -Werror, also many 3rd party software will not compile with this
flag.  Fixing all the warnings in all the s/w in the world is
unrealistic, so hard coding -Werror is counter productive.

The patch below does not change the current behaviour, but allows
-Werror to be easily turned off.

Apply the patch then
make WERROR=

***      Fri May 17 03:50:45 1996
---  Sat Mar  8 08:54:41 1997
*** 2,8 ****
  # Overrides used for NetBSD source tree builds.
! CFLAGS+= -Werror
  .if defined(DESTDIR)
  CFLAGS+= -nostdinc -idirafter ${DESTDIR}/usr/include
--- 2,9 ----
  # Overrides used for NetBSD source tree builds.
! WERROR?= -Werror
  .if defined(DESTDIR)
  CFLAGS+= -nostdinc -idirafter ${DESTDIR}/usr/include