shithub: freetype+ttf2subf

Download patch

ref: 467b026cd509b497c2d8bfd2ce350b62466f6964
parent: 2b0ac18990e7800aad568cf91dcb510ef9beff62
author: Werner Lemberg <[email protected]>
date: Sat Feb 18 05:42:48 EST 2017

Remove clang warnings.

* src/autofit/aflatin.c (af_latin_sort_blue): Add missing `static'
keyword.

* src/base/ftmm.c (FT_Set_Var_Design_Coordinates,
FT_Set_MM_Blend_Coordinates, FT_Set_Var_Blend_Coordinates):
Initialize some variables.

git/fs: mount .git/fs: mount/attach disallowed
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,14 @@
+2017-02-17  Werner Lemberg  <[email protected]>
+
+	Remove clang warnings.
+
+	* src/autofit/aflatin.c (af_latin_sort_blue): Add missing `static'
+	keyword.
+
+	* src/base/ftmm.c (FT_Set_Var_Design_Coordinates,
+	FT_Set_MM_Blend_Coordinates, FT_Set_Var_Blend_Coordinates):
+	Initialize some variables.
+
 2017-02-16  Nikolaus Waxweiler  <[email protected]>
 	    Werner Lemberg  <[email protected]>
 
--- a/src/autofit/aflatin.c
+++ b/src/autofit/aflatin.c
@@ -265,7 +265,7 @@
   }
 
 
-  void
+  static void
   af_latin_sort_blue( FT_UInt        count,
                       AF_LatinBlue*  table )
   {
--- a/src/base/ftmm.c
+++ b/src/base/ftmm.c
@@ -188,8 +188,8 @@
                                  FT_Fixed*  coords )
   {
     FT_Error                      error;
-    FT_Service_MultiMasters       service_mm;
-    FT_Service_MetricsVariations  service_mvar;
+    FT_Service_MultiMasters       service_mm   = NULL;
+    FT_Service_MetricsVariations  service_mvar = NULL;
 
 
     /* check of `face' delayed to `ft_face_get_mm_service' */
@@ -261,8 +261,8 @@
                                FT_Fixed*  coords )
   {
     FT_Error                      error;
-    FT_Service_MultiMasters       service_mm;
-    FT_Service_MetricsVariations  service_mvar;
+    FT_Service_MultiMasters       service_mm   = NULL;
+    FT_Service_MetricsVariations  service_mvar = NULL;
 
 
     /* check of `face' delayed to `ft_face_get_mm_service' */
@@ -309,8 +309,8 @@
                                 FT_Fixed*  coords )
   {
     FT_Error                      error;
-    FT_Service_MultiMasters       service_mm;
-    FT_Service_MetricsVariations  service_mvar;
+    FT_Service_MultiMasters       service_mm   = NULL;
+    FT_Service_MetricsVariations  service_mvar = NULL;
 
 
     /* check of `face' delayed to `ft_face_get_mm_service' */