shithub: freetype+ttf2subf

Download patch

ref: 49c5e24a149a960b5f2736d7b1d98a4d56d7e2f0
parent: befee11296032fc8b25d87bf0f65c18bb67682bb
author: Werner Lemberg <wl@gnu.org>
date: Tue May 15 17:55:28 EDT 2018

[psaux] Fix compiler warning (#53915).

* src/psaux/psft.c (cf2_freeT1SeacComponent): Do it.

git/fs: mount .git/fs: mount/attach disallowed
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
 2018-05-15  Werner Lemberg  <wl@gnu.org>
 
+	[psaux] Fix compiler warning (#53915).
+
+	* src/psaux/psft.c (cf2_freeT1SeacComponent): Do it.
+
+2018-05-15  Werner Lemberg  <wl@gnu.org>
+
 	[sfnt] Fix memory leak in handling `COLR' data.
 
 	* src/truetype/ttgload.c (TT_Load_Glyph): Free old `layers' array
--- a/src/psaux/psft.c
+++ b/src/psaux/psft.c
@@ -767,6 +767,8 @@
   cf2_freeT1SeacComponent( PS_Decoder*  decoder,
                            CF2_Buffer   buf )
   {
+#ifdef FT_CONFIG_OPTION_INCREMENTAL
+
     T1_Face  face;
     FT_Data  data;
 
@@ -773,7 +775,6 @@
 
     FT_ASSERT( decoder );
 
-#ifdef FT_CONFIG_OPTION_INCREMENTAL
     face = (T1_Face)decoder->builder.face;
 
     data.pointer = buf->start;
@@ -783,7 +784,13 @@
       face->root.internal->incremental_interface->funcs->free_glyph_data(
         face->root.internal->incremental_interface->object,
         &data );
-#endif /* FT_CONFIG_OPTION_INCREMENTAL */
+
+#else /* !FT_CONFIG_OPTION_INCREMENTAL */
+
+    FT_UNUSED( decoder );
+    FT_UNUSED( buf );
+
+#endif /* !FT_CONFIG_OPTION_INCREMENTAL */
   }
 
 
--