harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hinde...@apache.org
Subject svn commit: r775866 - /harmony/enhanced/classlib/trunk/modules/awt/src/main/native/linuxfont/unix/LinuxNativeFont.c
Date Mon, 18 May 2009 09:18:21 GMT
Author: hindessm
Date: Mon May 18 09:18:20 2009
New Revision: 775866

URL: http://svn.apache.org/viewvc?rev=775866&view=rev
Log:
Fix compiler errors seen when using "CFLAGS=-DDEBUG".

Modified:
    harmony/enhanced/classlib/trunk/modules/awt/src/main/native/linuxfont/unix/LinuxNativeFont.c

Modified: harmony/enhanced/classlib/trunk/modules/awt/src/main/native/linuxfont/unix/LinuxNativeFont.c
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/awt/src/main/native/linuxfont/unix/LinuxNativeFont.c?rev=775866&r1=775865&r2=775866&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/awt/src/main/native/linuxfont/unix/LinuxNativeFont.c
(original)
+++ harmony/enhanced/classlib/trunk/modules/awt/src/main/native/linuxfont/unix/LinuxNativeFont.c
Mon May 18 09:18:20 2009
@@ -115,7 +115,7 @@
         for (j = 0; j < numFamilies; j++) {
 
 #ifdef DEBUG
-            font = FcNameUnparse (fs->fonts[j]);
+            FcChar8* font = FcNameUnparse (fs->fonts[j]);
             printf ("%s\n", font);
             free (font);
 #endif /* DEBUG */
@@ -910,9 +910,11 @@
             }
 
 #ifdef DEBUG
-            font = FcNameUnparse (fs->fonts[j]);
-            printf ("%s\n", font);
-            free(font);
+            {
+             FcChar8* font = FcNameUnparse (fs->fonts[j]);
+             printf ("%s\n", font);
+             free(font);
+            }
 #endif /* DEBUG */
 
             if (XftPatternGetString (fs->fonts[j], XFT_STYLE, 0, &style) != XftResultMatch)
{



Mime
View raw message