Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 6 Jul 1996 08:55:03 +0200 (MET DST)
From:      J Wunsch <j@uriah.heep.sax.de>
To:        freebsd-hackers@freebsd.org (FreeBSD hackers)
Subject:   Re: gcc lies?
Message-ID:  <199607060655.IAA04488@uriah.heep.sax.de>
In-Reply-To: <199607051011.MAA15302@allegro.lemis.de> from Greg Lehey at "Jul 5, 96 12:11:51 pm"

next in thread | previous in thread | raw e-mail | index | archive | help
As Greg Lehey wrote:

> So I installed 2.7.2 as my standard compiler, and hey! suddenly I get
> thousands of warnings from my kernel builds.  For example,

That has been reported before, e.g. by Peter Wemm.

> ../../kern/kern_descrip.c:127: warning: comparison between signed and unsigned

gcc 2.6 doesn't warn these (RTFM -- it does only warn comparision of
unsigned > 0 or <= 0).  Most (if not all) of your examples refer to
the structure tag fd_nfiles which is declared `int', but continously
used in an unsigned context.

-- 
cheers, J"org

joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199607060655.IAA04488>