Misc cleanups to take care of GCC3.x warnings. Missing 'U' and 'LL'
authorMatthew Dillon <dillon@dragonflybsd.org>
Sat, 15 Nov 2003 21:05:44 +0000 (21:05 +0000)
committerMatthew Dillon <dillon@dragonflybsd.org>
Sat, 15 Nov 2003 21:05:44 +0000 (21:05 +0000)
commit6b08710ee11d58fba7e8982f046f86f888c48dfa
treeb02a7131f1c05e24fbe9fe22f9a42cacf6248fd9
parentc7e12643769e22798e9908dbcffe2524ca555f55
Misc cleanups to take care of GCC3.x warnings.  Missing 'U' and 'LL'
postfixes on large unsigned or 64 bit constants, non-storage structural
declarations embedded in structures, deprecated use of __FUNCTION__,
missing 'break' statements in the last switch case, goto label ops where
the label occurs just before an end-brace (many of which appear to be
fixable with 'break' or 'continue' instead and existed simply due to
programmer-paranoia), garbage data in #endif lines that was not commented
out.  GCC3 also caught some argument count issues in kernel printfs.

Many of these (obvious) fixes are similar to or copied from 5.x.

Also fix a few other minor issues such as certain drivers declaring a
proc pointer instead of a thread pointer.

Move -ffreestanding from CWARNFLAGS to CFLAGS.  It doesn't belong in
CWARNFLAGS.
44 files changed:
sys/bus/firewire/fwohcireg.h
sys/bus/ppbus/ppb_msq.c
sys/conf/bsd.kern.mk
sys/contrib/dev/acpica/actypes.h
sys/cpu/i386/include/db_machdep.h
sys/ddb/db_run.c
sys/dev/acpica/acpi_thermal.c
sys/dev/disk/aha/aha.c
sys/dev/disk/aic7xxx/ahc_pci.c
sys/dev/disk/aic7xxx/ahd_pci.c
sys/dev/disk/ata/atapi-fd.c
sys/dev/disk/ncr/ncr.c
sys/dev/misc/pccard/pccarddevs.h
sys/dev/misc/pcic/i82365var.h
sys/dev/netif/ray/if_ray.c
sys/dev/raid/asr/osd_util.h
sys/dev/raid/asr/sys_info.h
sys/dev/raid/twe/twe_freebsd.c
sys/dev/raid/vinum/vinumioctl.c
sys/dev/raid/vinum/vinumrevive.c
sys/dev/raid/vinum/vinumstate.c
sys/dev/sound/pcm/feeder.c
sys/dev/sound/pcm/sound.c
sys/dev/usbmisc/umass/umass.c
sys/dev/video/fb/bmp/splash_bmp.c
sys/emulation/ibcs2/i386/ibcs2_sysvec.c
sys/emulation/linux/linux_ioctl.c
sys/emulation/svr4/svr4_misc.c
sys/i386/i386/machdep.c
sys/i386/include/db_machdep.h
sys/i386/isa/clock.c
sys/kern/subr_rman.c
sys/netgraph/async/ng_async.c
sys/netgraph/netgraph/ng_parse.c
sys/netproto/smb/smb_subr.h
sys/platform/pc32/i386/machdep.c
sys/platform/pc32/isa/clock.c
sys/sys/dvdio.h
sys/sys/systm.h
sys/vfs/hpfs/hpfs.h
sys/vfs/nfs/nfs_nqlease.c
sys/vfs/nfs/nfs_vfsops.c
sys/vfs/nfs/nfs_vnops.c
sys/vfs/nfs/nfsm_subs.h