Date: Fri, 06 Feb 2009 19:39:09 +0200 From: Andriy Gapon <avg@icyb.net.ua> To: freebsd-hackers@FreeBSD.org, freebsd-arch@FreeBSD.org Subject: Re: NO_WERROR vs kernel builds Message-ID: <498C75BD.5040205@icyb.net.ua> In-Reply-To: <4989EA2A.6050601@icyb.net.ua> References: <4989EA2A.6050601@icyb.net.ua>
next in thread | previous in thread | raw e-mail | index | archive | help
on 04/02/2009 21:19 Andriy Gapon said the following: > 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. > Can anybody please explain or comment (or rub my nose into it)? -- Andriy Gapon
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?498C75BD.5040205>