Re: fs/block_dev.c:953: warning: 'found' might be used uninitialized in this function

From: Adrian Bunk
Date: Sat Mar 31 2007 - 10:04:50 EST


On Sat, Mar 31, 2007 at 10:11:27AM +0200, Toralf FÃrster wrote:
> Am Freitag, 30. MÃrz 2007 21:47 schrieb Adrian Bunk:
> >
> >
> > No, the code is correct and it's impossible that the variable ever gets
> > read uninitialized.
> >
> > And BTW, i386 gcc 4.1 doesn't give me a warning for this.
> > Toralf, which gcc version and architecture did you see this with?
>
> > cu
> > Adrian
> >
>
> Hi, I use currently the following version:
>
> gcc version 3.4.6 (Gentoo 3.4.6-r2, ssp-3.4.6-1.0, pie-8.7.10)

For finding warnings it's better to use the latest gcc version - gcc is
evalving, and more recent versions tend to both give more valid warnings
and give less warnings for non-problems (like in this case).

> MfG/Sincerely
>
> Toralf FÃrster

cu
Adrian

--

"Is there not promise of rain?" Ling Tan asked suddenly out
of the darkness. There had been need of rain for many days.
"Only a promise," Lao Er said.
Pearl S. Buck - Dragon Seed

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