Date: Sun, 7 Jul 1996 09:40:10 +0200 (MET DST) From: grog@lemis.de (Greg Lehey) To: gpalmer@freebsd.org (Gary Palmer) Cc: hackers@freebsd.org (FreeBSD Hackers) Subject: Re: gcc lies? Message-ID: <199607070740.JAA15204@allegro.lemis.de> In-Reply-To: <20829.836638114@palmer.demon.co.uk> from "Gary Palmer" at Jul 6, 96 08:28:34 am
next in thread | previous in thread | raw e-mail | index | archive | help
Gary Palmer writes: > > Greg Lehey wrote in message ID > <199607051011.MAA15302@allegro.lemis.de>: >> ../../kern/kern_descrip.c: In function `getdtablesize': >> ../../kern/kern_descrip.c:99: warning: unused parameter `uap' >> ../../kern/kern_descrip.c: In function `dup2': >> ../../kern/kern_descrip.c:127: warning: comparison between signed and unsigned > >> (that's not all, but it's enough). > >> If I compile the same module with the standard release gcc, I get no >> warnings at all. How come? At first I thought it might be the header >> files, but there's a -nostdinc in there, and I checked: it really does >> include just the kernel header files. > > No, it's not GCC lies, the tightened up quite a bit on their parser > and the error checking is a lot more thorough as a result. The end > product: LINT has gone from about 100 warnings up to 4000. I'm going > to be looking to kill a few of these once 2.1.5 is out and I have > time. My apologies, you're right.. I thought the port of gcc to FreeBSD had broken the warnings, but I compiled the original 2.6.3, and there were no warnings from it either. Greg
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199607070740.JAA15204>