bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: oskit-mach: -Wall


From: Roland McGrath
Subject: Re: oskit-mach: -Wall
Date: Tue, 5 Mar 2002 17:00:28 -0500 (EST)

> And, some variables (like X in device/net_io.c) `might be used
> uninitialized'. They are mostly register `int's set to 0 in case of
> `#if lint', but unset normally. This may have reasons concerning
> speed. Can we be sure, that gcc sets them to zero or should they get
> initialized?

The warning says "might" because the compiler can't say "is" or "will be"
definitively.  A human can.  We don't introduce dead stores into our code
just to pacify a compiler that is not as smart as we are.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]