This patch fixed build with gcc 2.95 when use option --with-xft.
2006-05-16 Andrey Slusar <anrays(a)gmail.com>
* objects-x.c (x_find_charset_font): Fix build with gcc 2.95
xemacs-21.5 source patch:
Diff command: cvs -q diff -u
Files affected: src/objects-x.c
Index: src/objects-x.c
===================================================================
RCS file: /pack/xemacscvs/XEmacs/xemacs/src/objects-x.c,v
retrieving revision 1.40
diff -u -u -r1.40 objects-x.c
--- src/objects-x.c 2006/05/09 10:40:09 1.40
+++ src/objects-x.c 2006/05/16 13:59:15
@@ -1215,6 +1215,7 @@
stderr_out ("Failed fontconfig initialization\n");
else
{
+ struct charset_reporter *cr;
FcPattern *fontxft; /* long-lived, freed at end of this block */
FcResult fcresult;
FcConfig *fcc;
@@ -1302,7 +1303,6 @@
Optimization: cache the generated FcCharSet in the Mule charset.
Don't forget to destroy it if the Mule charset gets deallocated. */
- struct charset_reporter *cr;
for (cr = charset_table;
cr->charset && !EQ (*(cr->charset), charset);
cr++)
--
Regards,
Andrey.