Commit 03f3f8ab9e5bab63d925c7369a78d59b831896d7

Werner Lemberg 2019-05-13T06:53:19

* src/psaux/psfont.c (cf2_font_setup): Fix compiler warning.

diff --git a/ChangeLog b/ChangeLog
index 77766c4..d392eba 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2019-05-13  Werner Lemberg  <wl@gnu.org>
+
+	* src/psaux/psfont.c (cf2_font_setup): Fix compiler warning.
+
 2019-05-12  Werner Lemberg  <wl@gnu.org>
 
 	[truetype] Doh.  Fix last commit to make it work.
diff --git a/src/psaux/psfont.c b/src/psaux/psfont.c
index bb5faa3..00e4210 100644
--- a/src/psaux/psfont.c
+++ b/src/psaux/psfont.c
@@ -274,9 +274,6 @@
 
     if ( !font->isT1 )
     {
-      FT_Service_CFFLoad  cffload = (FT_Service_CFFLoad)font->cffload;
-
-
       /* check for variation vectors */
       vstore        = cf2_getVStore( decoder );
       hasVariations = ( vstore->dataCount != 0 );
@@ -284,6 +281,9 @@
       if ( hasVariations )
       {
 #ifdef TT_CONFIG_OPTION_GX_VAR_SUPPORT
+        FT_Service_CFFLoad  cffload = (FT_Service_CFFLoad)font->cffload;
+
+
         /* check whether Private DICT in this subfont needs to be reparsed */
         font->error = cf2_getNormalizedVector( decoder,
                                                &lenNormalizedV,