Re: [PATCH 2.3.48] initrd fix (Mike Galbraith)

From: Matthias Urlichs (smurf@noris.de)
Date: Mon Feb 28 2000 - 01:35:34 EST


phillips@bonn-fries.net (Daniel Phillips) writes:
>
> One *small* reason is that you will get "variable may be used uninitialized"
> warnings from the compiler if the variable is always set inside conditionals
> and it can't be proved that every path hits an assignment.

We're talking about variables outside of functions here.
They're zeroed out by the BSS init code, and the C compiler knows that.

-- 
Matthias Urlichs  |  noris network GmbH   |   smurf@noris.de  |  ICQ: 20193661

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Tue Feb 29 2000 - 21:00:19 EST