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

[Xen-devel] [PATCH]: minios: eliminate compile warning - use of uninitialised variable



I'm not sure if this is a legit catch by gcc or a false positive due to
extra cleverness in gcc-4.5. Either way it causes the build to barf.

Signed-off-by: Gianni Tedesco <gianni.tedesco@xxxxxxxxxx>

diff -r c55b93f3f8cf extras/mini-os/lib/math.c
--- a/extras/mini-os/lib/math.c Fri Jan 07 15:27:30 2011 +0000
+++ b/extras/mini-os/lib/math.c Fri Jan 07 16:48:27 2011 +0000
@@ -157,6 +157,8 @@ __qdivrem(uint64_t uq, uint64_t vq, uint
        int m, n, d, j, i;
        digit uspace[5], vspace[5], qspace[5];
 
+       memset(&tmp, 0, sizeof(tmp));
+
        /*
         * Take care of special cases: divide by zero, and u < v.
         */



_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.