Re: Expected compiler error on GENERIC?

In message <15513.4041.407099.858575@xxxxxxxxxxxxxxxxxxxxxxx> Andrew Gallatin
: > cc -c -O -pipe -mcpu=ev56 -Wall -Wredundant-decls -Wnested-externs
-Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual
-fformat-extensions -ansi -g -nostdinc -I- -I. -I../../.. -I../../../dev
-I../../../contrib/dev/acpica -I../../../contrib/ipfilter -I/usr/include
-D_KERNEL -ffreestanding -include opt_global.h -fno-common -elf -mno-fp-regs
-ffixed-8 -Wa,-mev56 -Werror ../../../alpha/pci/t2.c
: > cc1: warnings being treated as errors
: > ../../../alpha/pci/t2.c: In function `t2_probe':
: > ../../../alpha/pci/t2.c:340: warning: cast discards qualifiers from
pointer target type
: > *** Error code 1
: >
: Until recently, alpha compiles never even made it this far with
: -Werror..
: What's the appropriate way to shut the compiler up?

The line in question is
if (!badaddr((void *)&t2_csr[1]->tlbbr, sizeof(long))) {
but I don't know what the type of tlbbr is, but it is either volatile
or const for some reason...


To Unsubscribe: send mail to majordomo@xxxxxxxxxxx
with "unsubscribe freebsd-alpha" in the body of the message