In-discussion-with: pavalos
-Wmissing-prototypes -Wnested-externs -Wpointer-arith \
-Wredundant-decls -Wshadow -Wstrict-prototypes -Wwrite-strings
#
+# WARNS_WERROR causes -Werror to be added when WARNS is in effect.
+#WARNS_WERROR= yes
+#
# To compile just the kernel with special optimizations, you should use
# this instead of CFLAGS (which is not applicable to kernel builds anyway).
# There is very little to gain by using higher optimization levels, and doing
.\" $FreeBSD: src/share/man/man5/make.conf.5,v 1.12.2.30 2003/05/18 17:05:55 brueffer Exp $
.\" $DragonFly: src/share/man/man5/make.conf.5,v 1.38 2008/11/03 00:25:45 pavalos Exp $
.\"
-.Dd December 1, 2008
+.Dd January 31, 2009
.Dt MAKE.CONF 5
.Os
.Sh NAME
command.
If set to a blank value, components will be installed with debugging
symbols.
+.It Va WARNS_WERROR
+Causes
+.Fl Werror
+to be added to
+.Va CWARNFLAGS
+when WARNS is in effect.
.It Va WITH_GCPIO
.Pq Vt bool
Set this to use
. if defined(WARNS)
. if ${WARNS} >= 1
CWARNFLAGS += -Wsystem-headers
-#. if !defined(NO_WERROR) && ${CCVER} == "gcc41" && ${MACHINE_ARCH} == "i386"
-#CWARNFLAGS += -Werror
-#. endif
+. if defined(WARNS_WERROR) && !defined(NO_WERROR)
+CWARNFLAGS += -Werror
+. endif
. endif
. if ${WARNS} >= 2
CWARNFLAGS += -Wall
. if defined(WFORMAT)
. if ${WFORMAT} > 0
CWARNFLAGS += -Wformat=2 -Wno-format-extra-args
-#. if !defined(NO_WERROR) && ${CCVER} == "gcc41" && ${MACHINE_ARCH} == "i386"
-#CWARNFLAGS += -Werror
-#. endif
+. if defined(WARNS_WERROR) && !defined(NO_WERROR)
+CWARNFLAGS += -Werror
+. endif
. endif
. endif
.endif