Date: Wed, 21 Nov 2007 16:58:24 +0300 From: Ruslan Ermilov <ru@freebsd.org> To: Alexey Dokuchaev <danfe@nsu.ru> Cc: current@freebsd.org Subject: Re: make kernel build error on recent -current Message-ID: <20071121135823.GE1617@team.vega.ru> In-Reply-To: <20071121090527.GA57912@regency.nsu.ru> References: <20071121090527.GA57912@regency.nsu.ru>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Nov 21, 2007 at 03:05:27PM +0600, Alexey Dokuchaev wrote: > hi there, > > i'm seeing this while trying to make my kernel: > > cc -c -O2 -pipe -mtune=pentium4 -march=pentium4 -fno-strict-aliasing -march=pentium4 -std=c99 -g -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/altq -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000 -fno-builtin -mno-align-long-strings -mpreferred-stack-boundary=2 -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3 -ffreestanding -Werror /usr/src/sys/kern/kern_intr.c > cc1: warnings being treated as errors > /usr/src/sys/kern/kern_intr.c: In function 'intr_priority': > /usr/src/sys/kern/kern_intr.c:117: warning: 'pri' may be used uninitialized in this function > *** Error code 1 > > it seems that `kern.pre.mk' enables -Werror despite my NO_WERROR setting. > I cannot reproduce this on neither RELENG_7 or HEAD, compiling GENERIC or LINT (you didn't tell what combination you're using), but NO_WERROR never affected -Werror in kernel and module builds. In this case, you can reset -Werror like this: make ... WERROR= Cheers, -- Ruslan Ermilov ru@FreeBSD.org FreeBSD committer
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20071121135823.GE1617>