Date: Fri, 31 Oct 1997 19:41:37 -0800 (PST) From: Simon Shapiro <Shimon@i-Connect.Net> To: freebsd-current@freebsd.org Subject: Minor kernel compile warnings... Message-ID: <XFMail.971031194137.Shimon@i-Connect.Net>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?XFMail.971031194137.Shimon>