On Thu, 12 Sep 2002, Kris Kennaway wrote:
> How are you supposed to disable -Werror in kernel builds?  Setting
> NO_WERROR in the env or passing it to 'make buildkernel' via -D
> doesn't work; neither does putting -Wno-error in COPTFLAGS.  I get the
> following fatal warning when compiling a recent alpha 5.0 kernel under
> 4.x:
> 
> cc -c -O -pipe -Wno-error -mcpu=ev56 -Wall -Wredundant-decls -Wnested-externs 
>-Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  
>-fformat-extensions -ansi  -nostdinc -I-  -I. -I/local0/src2/sys 
>-I/local0/src2/sys/dev -I/local0/src2/sys/contrib/dev/acpica 
>-I/local0/src2/sys/contrib/ipfilter -I/local0/src2/sys/../include -D_KERNEL -include 
>opt_global.h -fno-common   -mno-fp-regs -ffixed-8 -Wa,-mev6 -ffreestanding -Werror  
>/local0/src2/sys/dev/ccd/ccd.c
> cc1: warnings being treated as errors
> /local0/src2/sys/dev/ccd/ccd.c: In function `ccdiodone':
> /local0/src2/sys/dev/ccd/ccd.c:1181: warning: long long int format, daddr_t arg (arg 
>6)
> *** Error code 1
> 
> Kris

NO_WERROR was removed so the only way is to set in your make.conf:
WERROR=

This causes the WERROR?=-Werror to not set the flag.

-Nate
(who wants NO_WERROR back or better, warns-clean code more often in
-current)


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message

Reply via email to