Date: Sun, 01 Mar 1998 14:58:49 +0200 From: Ian Freislich <iang@digs.iafrica.com> To: current@FreeBSD.ORG Subject: Duplicate cases in /usr/src/sys/pci/pcisupport.c Message-ID: <E0y98KQ-0001ZC-00@brane.digs.iafrica.com>
next in thread | raw e-mail | index | archive | help
Hi Noticed this when I tried to compile my kernel this afternoon: cc -c -O -pipe -Wreturn-type -Wcomment -Wredundant-decls -Wimplicit -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wuninitialized -nostdinc -I- -I. -I../.. -I../../../include -DKERNEL -include opt_global.h ../../pci/pcisupport.c ../../pci/pcisupport.c: In function `chipset_probe': ../../pci/pcisupport.c:217: duplicate case value ../../pci/pcisupport.c:207: this is the first entry for that value ../../pci/pcisupport.c:219: duplicate case value ../../pci/pcisupport.c:209: this is the first entry for that value ../../pci/pcisupport.c:223: duplicate case value ../../pci/pcisupport.c:211: this is the first entry for that value ../../pci/pcisupport.c:225: duplicate case value ../../pci/pcisupport.c:213: this is the first entry for that value ../../pci/pcisupport.c: In function `vga_probe': ../../pci/pcisupport.c:826: warning: declaration of `type' shadows a parameter ../../pci/pcisupport.c:1090: warning: return discards `const' from pointer target type Looking in the file: @207: case 0x71008086: return ("Intel 82439TX System Controller (MTXC)"); @217: case 0x71008086: return ("Intel 82439TX PCI cache memory controller"); I suppose this would have a bad effect on things. I'm not sure if this part number is both of the things this code suggests it is. -- igf (Ian Freislich) http://copernicus.iafrica.com/ 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?E0y98KQ-0001ZC-00>