write-only variables in src/sys/ - possible bugs

Luigi Rizzo rizzo at iet.unipi.it
Mon Feb 2 13:14:42 PST 2009


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


More information about the freebsd-hackers mailing list