Hi,
src/base/ftobjs.c line 2233 produces the following warning with latest CVS ,
/packages/freetype2/src/base/ftobjs.c: In function 'FT_Request_Metrics':
/packages/freetype2/src/base/ftobjs.c:2233: warning: 'h' may be used
uninitialized in this function
/packages/freetype2/src/base/ftobjs.c:2233: warning: 'w' may be used
uninitialized in this function
Attached patch fixes this by initializing both w & h to zero.
Regards,
ismail
--
Perfect is the enemy of good
Index: src/base/ftobjs.c
===================================================================
RCS file: /cvsroot/freetype/freetype2/src/base/ftobjs.c,v
retrieving revision 1.279
diff -u -r1.279 ftobjs.c
--- src/base/ftobjs.c 1 Jun 2007 21:27:12 -0000 1.279
+++ src/base/ftobjs.c 2 Jun 2007 23:44:18 -0000
@@ -2230,7 +2230,7 @@
if ( FT_IS_SCALABLE( face ) )
{
- FT_Long w, h, scaled_w = 0, scaled_h = 0;
+ FT_Long w = 0, h = 0, scaled_w = 0, scaled_h = 0;
switch ( req->type )
_______________________________________________
Freetype-devel mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/freetype-devel