[PATCH 2/4] DTC: Quiet a bogus "May be used uninitialized" warning.
David Gibson
david at gibson.dropbear.id.au
Sat Oct 20 17:16:32 EST 2007
On Fri, Oct 19, 2007 at 12:42:58PM -0500, Jon Loeliger wrote:
>
> Signed-off-by: Jon Loeliger <jdl at freescale.com>
I don't like this one much. The warning is indeed bogus, and my
compiler version, at least, doesn't generate it
mulberryst:~/dtc$ gcc --version
gcc (GCC) 4.1.3 20070929 (prerelease) (Ubuntu 4.1.2-16ubuntu2)
Putting in the initializer would mean that even on non-broken
compilers, we wouldn't get the warning if we ever changed the
contained code so that it really should generate an unitialized
variable warning.
--
David Gibson | I'll have my music baroque, and my code
david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_
| _way_ _around_!
http://www.ozlabs.org/~dgibson
More information about the Linuxppc-dev
mailing list