Date: Thu, 12 Sep 2002 13:52:40 -0700 (PDT) From: Nate Lawson <nate@root.org> To: Kris Kennaway <kris@obsecurity.org> Cc: current@FreeBSD.org Subject: Re: Alpha fatal warning in kernel compile Message-ID: <Pine.BSF.4.21.0209121350140.25058-100000@root.org> In-Reply-To: <20020912202750.GA21944@xor.obsecurity.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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 majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0209121350140.25058-100000>