From owner-freebsd-alpha Wed Mar 20 15:13:18 2002 Delivered-To: freebsd-alpha@freebsd.org Received: from rover.village.org (rover.bsdimp.com [204.144.255.66]) by hub.freebsd.org (Postfix) with ESMTP id 5637337B41D for ; Wed, 20 Mar 2002 15:13:08 -0800 (PST) Received: from harmony.village.org (harmony.village.org [10.0.0.6]) by rover.village.org (8.11.3/8.11.3) with ESMTP id g2KND7i77781; Wed, 20 Mar 2002 16:13:07 -0700 (MST) (envelope-from imp@harmony.village.org) Received: from harmony.village.org (localhost [127.0.0.1]) by harmony.village.org (8.11.6/8.11.6) with ESMTP id g2KND6L12819; Wed, 20 Mar 2002 16:13:06 -0700 (MST) (envelope-from imp@harmony.village.org) Message-Id: <200203202313.g2KND6L12819@harmony.village.org> To: Andrew Gallatin Subject: Re: Expected compiler error on GENERIC? Cc: alpha@FreeBSD.ORG In-reply-to: Your message of "Wed, 20 Mar 2002 17:40:09 EST." <15513.4041.407099.858575@grasshopper.cs.duke.edu> References: <15513.4041.407099.858575@grasshopper.cs.duke.edu> <20020320.153148.103780390.imp@village.org> Date: Wed, 20 Mar 2002 16:13:06 -0700 From: Warner Losh Sender: owner-freebsd-alpha@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org In message <15513.4041.407099.858575@grasshopper.cs.duke.edu> Andrew Gallatin writes: : > 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... Warner To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-alpha" in the body of the message