[parisc-linux] what's in parisc-2.6.git
Matthew Wilcox
matthew at wil.cx
Sat Oct 20 11:43:54 MDT 2007
On Sat, Oct 20, 2007 at 12:44:32PM -0400, Carlos O'Donell wrote:
> GCC head is really great at correctly noticing uninitialized uses of
> variables. I'm tempted to compile the kernel with head just to fix
> these. I just fixed 2 such cases in gdb.
I find it detects too many false positives. For example ...
int a = 0, b;
for (...) {
if (c) {
a = c;
b = f(c);
}
...
if (a) {
foo->a = a;
foor->b = b;
}
}
warns that b may be used uninitialised.
(reconstructed from memory ... I don't have the exact code to hand right
now)
--
Intel are signing my paycheques ... these opinions are still mine
"Bill, look, we understand that you're interested in selling us this
operating system, but compare it to ours. We can't possibly take such
a retrograde step."
More information about the parisc-linux
mailing list