freetype-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[freetype2] master 467b026 4/9: Remove clang warnings.


From: Werner LEMBERG
Subject: [freetype2] master 467b026 4/9: Remove clang warnings.
Date: Mon, 20 Feb 2017 03:16:24 -0500 (EST)

branch: master
commit 467b026cd509b497c2d8bfd2ce350b62466f6964
Author: Werner Lemberg <address@hidden>
Commit: Werner Lemberg <address@hidden>

    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.
---
 ChangeLog             | 11 +++++++++++
 src/autofit/aflatin.c |  2 +-
 src/base/ftmm.c       | 12 ++++++------
 3 files changed, 18 insertions(+), 7 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 68a914f..f442167 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,14 @@
+2017-02-17  Werner Lemberg  <address@hidden>
+
+       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  <address@hidden>
            Werner Lemberg  <address@hidden>
 
diff --git a/src/autofit/aflatin.c b/src/autofit/aflatin.c
index 7e6e8ea..b983460 100644
--- 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 )
   {
diff --git a/src/base/ftmm.c b/src/base/ftmm.c
index 5705f21..6aaa5f8 100644
--- 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' */



reply via email to

[Prev in Thread] Current Thread [Next in Thread]