Date: Thu, 3 Oct 1996 08:57:42 +0200 (MET DST) From: sos@FreeBSD.org To: peter@spinner.DIALix.COM (Peter Wemm) Cc: sos@FreeBSD.org, jkh@freefall.freebsd.org, CVS-committers@freefall.freebsd.org, cvs-all@freefall.freebsd.org, cvs-sys@freefall.freebsd.org Subject: Re: cvs commit: src/sys/i386/isa syscons.c Message-ID: <199610030657.IAA07715@ra.dkuug.dk> In-Reply-To: <199610030642.OAA03239@spinner.DIALix.COM> from "Peter Wemm" at Oct 3, 96 02:42:49 pm
next in thread | previous in thread | raw e-mail | index | archive | help
In reply to Peter Wemm who wrote: > > sos@FreeBSD.org wrote: > > In reply to Jordan K. Hubbard who wrote: > > > [Boy, sure a lot of warnings in here!] > > > > Yep, but they are all of the type (but two) that says you > > have a function with X parameters, but you use only X-n > > I'm not really sure what to do with them, they are bogus > > IMHO. Then there are two warning say that the sizeof > > operator is unsigned... > > In theory, it can be written: > void > func(x, y) > int x __unused; > char *y __unused; > { > return (1); > } > > or (in ANSI-style) > void > func(int x __unused, char *y __unused) > { > return (1); > } > > That should be enough to shut up gcc. Althought what to do about the > SYSCTL macro for declaring functions where you don't get the chance to > do this, I'm not sure about. Excuse me, but I tend to think that the compiler should be fixed here... -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Soren Schmidt (sos@FreeBSD.org) FreeBSD Core Team So much code to hack -- so little time.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199610030657.IAA07715>