* src/sfnt/sfobjs.c (sfnt_load_face): `psnames_error' is only needed if TT_CONFIG_OPTION_POSTSCRIPT_NAMES is defined.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
diff --git a/ChangeLog b/ChangeLog
index 973371d..1662536 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2008-10-02 Werner Lemberg <wl@gnu.org>
+
+ * src/sfnt/sfobjs.c (sfnt_load_face): `psnames_error' is only needed
+ if TT_CONFIG_OPTION_POSTSCRIPT_NAMES is defined.
+
2008-10-01 Werner Lemberg <wl@gnu.org>
* src/truetype/ttobjs.c (tt_face_done), src/cff/cffobjs.c
diff --git a/src/sfnt/sfobjs.c b/src/sfnt/sfobjs.c
index 4e88f8a..0d44638 100644
--- a/src/sfnt/sfobjs.c
+++ b/src/sfnt/sfobjs.c
@@ -506,7 +506,10 @@
FT_Int num_params,
FT_Parameter* params )
{
- FT_Error error, psnames_error;
+ FT_Error error;
+#ifdef TT_CONFIG_OPTION_POSTSCRIPT_NAMES
+ FT_Error psnames_error;
+#endif
FT_Bool has_outline;
FT_Bool is_apple_sbit;
@@ -581,7 +584,10 @@
/* don't check for errors */
LOAD_( name );
LOAD_( post );
+
+#ifdef TT_CONFIG_OPTION_POSTSCRIPT_NAMES
psnames_error = error;
+#endif
/* do not load the metrics headers and tables if this is an Apple */
/* sbit font file */