From owner-freebsd-hackers Sun Jul 7 01:02:41 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id BAA05691 for hackers-outgoing; Sun, 7 Jul 1996 01:02:41 -0700 (PDT) Received: from diablo.ppp.de (diablo.ppp.de [193.141.101.34]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id BAA05675; Sun, 7 Jul 1996 01:02:38 -0700 (PDT) Received: from allegro.lemis.de by diablo.ppp.de with smtp (Smail3.1.28.1 #1) id m0ucon7-000QehC; Sun, 7 Jul 96 10:02 MET DST From: grog@lemis.de (Greg Lehey) Organisation: LEMIS, Schellnhausen 2, 36325 Feldatal, Germany Phone: +49-6637-919123 Fax: +49-6637-919122 Received: (grog@localhost) by allegro.lemis.de (8.6.9/8.6.9) id JAA15204; Sun, 7 Jul 1996 09:40:10 +0200 Message-Id: <199607070740.JAA15204@allegro.lemis.de> Subject: Re: gcc lies? To: gpalmer@freebsd.org (Gary Palmer) Date: Sun, 7 Jul 1996 09:40:10 +0200 (MET DST) Cc: hackers@freebsd.org (FreeBSD Hackers) In-Reply-To: <20829.836638114@palmer.demon.co.uk> from "Gary Palmer" at Jul 6, 96 08:28:34 am X-Mailer: ELM [version 2.4 PL23] MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk 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