[AD] test.c patch

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


To get rid of MSVC 8 "uninitialized local variable used" warning.

--
Regards,
    Michal

ICQ# 175762750
--- test.c.old	Tue Nov 14 04:23:34 2006
+++ test.c	Sat Dec 30 15:28:00 2006
@@ -1256,7 +1256,7 @@
       textout_ex(screen, font, buf, xoff+16, yoff+15, palette_color[15], palette_color[0]);
    }
 
-   x = y = 0;
+   x = y = z = 0;
    tm = 0; _tm = 0;
    ct = 0;
 
@@ -1272,7 +1272,7 @@
    sprintf(buf, "fixmul(): %ld per second", ct/TIME_SPEED);
    textout_ex(screen, font, buf, xoff+16, yoff+25, palette_color[15], palette_color[0]);
 
-   fx = fy = 0;
+   fx = fy = fz = 0;
    tm = 0; _tm = 0;
    ct = 0;
 


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/