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

Attachment: msg42944/pgp00000.pgp
Description: PGP signature

Reply via email to