Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 2 Feb 2009 22:03:45 +0100
From:      Luigi Rizzo <rizzo@iet.unipi.it>
To:        Christoph Mallon <christoph.mallon@gmx.de>
Cc:        FreeBSD Hackers <freebsd-hackers@freebsd.org>, FreeBSD Current <freebsd-current@freebsd.org>
Subject:   Re: write-only variables in src/sys/ - possible bugs
Message-ID:  <20090202210345.GD20288@onelab2.iet.unipi.it>
In-Reply-To: <49874CA8.5090605@gmx.de>
References:  <49874CA8.5090605@gmx.de>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Feb 02, 2009 at 08:42:32PM +0100, Christoph Mallon wrote:
> Hi,
> 
> I compiled a list of all local variables in src/sys/ (r188000), which 
> are only written to, but never read. This is more than the GCC warning, 

interesting list, thanks.
Also, 700 entries is not a bad result considering the size
of the codebase and the age of parts of it (i am pretty sure
there is a lot of code 15+ years old which received little
if any mainteinance or use in the past decade).
(and i have nothing against old code except that compilers,
coding practices and the amount of peer review have improved
a lot over time, and so -- with some exceptions -- it is
easier to prevent some of these issues with more recent code).

cheers
luigi



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