NO_WERROR vs kernel builds
Andriy Gapon
avg at icyb.net.ua
Wed Feb 4 11:19:11 PST 2009
It seems that kernel builds ignore NO_WERROR.
Is this on purpose or by accident?
I think that this happens because of the following lines in
sys/conf/kern.pre.mk:
.if ${CC} != "icc"
CFLAGS+= -fno-common -finline-limit=${INLINE_LIMIT}
CFLAGS+= --param inline-unit-growth=100
CFLAGS+= --param large-function-growth=1000
.if ${MACHINE_ARCH} == "amd64" || ${MACHINE} == "i386" || \
${MACHINE_ARCH} == "ia64" || ${MACHINE_ARCH} == "powerpc" || \
${MACHINE_ARCH} == "sparc64"
WERROR?= -Werror
.endif
.endif
I had to specify WERROR= on make's command line to catch a certain kind
of warnings in bulk instead of one by one. This was not obvious.
--
Andriy Gapon
More information about the freebsd-hackers
mailing list