From owner-freebsd-current Fri Oct 31 19:41:23 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id TAA26223 for current-outgoing; Fri, 31 Oct 1997 19:41:23 -0800 (PST) (envelope-from owner-freebsd-current) Received: from sendero-ppp.i-connect.net (sendero-ppp.i-Connect.Net [206.190.143.100]) by hub.freebsd.org (8.8.7/8.8.7) with SMTP id TAA26213 for ; Fri, 31 Oct 1997 19:41:17 -0800 (PST) (envelope-from shimon@sendero-ppp.i-connect.net) Received: (qmail 7673 invoked by uid 1000); 1 Nov 1997 03:41:37 -0000 Message-ID: X-Mailer: XFMail 1.2-beta-103097 [p0] on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit MIME-Version: 1.0 Date: Fri, 31 Oct 1997 19:41:37 -0800 (PST) Organization: Atlas Telecom From: Simon Shapiro To: freebsd-current@freebsd.org Subject: Minor kernel compile warnings... Sender: owner-freebsd-current@freebsd.org X-Loop: FreeBSD.org Precedence: bulk I am getting these warnings. some are trivial (and I would have loved) to fix, some require whoever wrote them to decide: ../../kern/kern_malloc.c ../../kern/kern_malloc.c: In function `malloc': ../../kern/kern_malloc.c:136: warning: passing arg 3 of `tsleep' discards `const' from pointer target type ../../kern/kern_time.c ../../kern/kern_time.c:69: warning: function declaration isn't a prototype ../../miscfs/fdesc/fdesc_vnops.c ../../miscfs/fdesc/fdesc_vnops.c: In function `fdesc_lookup': ../../miscfs/fdesc/fdesc_vnops.c:198: warning: `fd' might be used uninitialized in this function ../../miscfs/union/union_subr.c ../../miscfs/union/union_subr.c: In function `union_allocvp': ../../miscfs/union/union_subr.c:298: warning: `hash' might be used uninitialized in this function make -f ../../dev/aic7xxx/Makefile MAKESRCPATH=../../dev/aic7xxx Warning: Object directory not changed from original /usr/src/3.0/src/sys/compile/SENDERO [ I wish I knew what that means :-) ] ../../pci/pci_compat.c ../../pci/pci_compat.c: In function `pci_map_int': ../../pci/pci_compat.c:172: warning: passing arg 3 of `intr_create' from incompatible pointer type I've seen this one before. Why cannot the argument here be cast? ../../ufs/lfs/lfs_segment.c ../../ufs/lfs/lfs_segment.c: In function `lfs_vunref': ../../ufs/lfs/lfs_segment.c:1232: warning: nested extern declaration of `vnode_free_list_slock' ../../ufs/lfs/lfs_segment.c:1233: warning: nested extern declaration of `vnode_free_list' ../../i386/i386/db_interface.c ../../i386/i386/db_interface.c: In function `kdb_trap': ../../i386/i386/db_interface.c:73: warning: variable `ddb_mode' might be clobbered by `longjmp' or `vfork' ../../i386/i386/initcpu.c ../../i386/i386/initcpu.c: In function `cyrixreg': ../../i386/i386/initcpu.c:522: warning: `ccr0' might be used uninitialized in this function ../../i386/i386/initcpu.c:522: warning: `ccr4' might be used uninitialized in this function ../../i386/i386/initcpu.c:522: warning: `ccr5' might be used uninitialized in this function ../../i386/i386/initcpu.c:522: warning: `pcr0' might be used uninitialized in this function ../../i386/isa/sound/audio.c ../../i386/isa/sound/audio.c: In function `audio_poll': ../../i386/isa/sound/audio.c:446: warning: implicit declaration of function `DMAbuf_poll' ../../i386/isa/sound/dmabuf.c ../../i386/isa/sound/dmabuf.c: In function `reorganize_buffers': ../../i386/isa/sound/dmabuf.c:143: warning: implicit declaration of function `fillw' ../../i386/isa/sound/dmabuf.c: At top level: ../../i386/isa/sound/dmabuf.c:1386: warning: no previous prototype for `DMAbuf_poll' ../../i386/isa/sound/sb_dsp.c ../../i386/isa/sound/sb_dsp.c:220: warning: no previous prototype for `dsp_speaker' ../../i386/isa/syscons.c ../../i386/isa/syscons.c: In function `scioctl': ../../i386/isa/syscons.c:907: warning: `i' might be used uninitialized in this function --- If Microsoft Built Cars: Every time they repainted the lines on the road, you'd have to buy a new car. Sincerely Yours, Simon Shapiro Atlas Telecom Senior Architect 14355 SW Allen Blvd., Suite 130 Beaverton OR 97005 Shimon@i-Connect.Net Voice: 503.799.2313