freetype-commit
[Top][All Lists]
Advanced

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

[freetype2] master a698dbf: [sfnt] Fix compiler warnings.


From: Werner LEMBERG
Subject: [freetype2] master a698dbf: [sfnt] Fix compiler warnings.
Date: Sun, 10 Jun 2018 15:44:18 -0400 (EDT)

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

    [sfnt] Fix compiler warnings.
    
    * src/sfnt/ttcolr.c (tt_face_load_colr, tt_face_load_colr_layers,
    tt_face_colr_blend_layer): Add `NULL' initializers.
---
 ChangeLog         | 7 +++++++
 src/sfnt/ttcolr.c | 6 +++---
 2 files changed, 10 insertions(+), 3 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index ed4592a..7878fd5 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
 2018-06-10  Werner Lemberg  <address@hidden>
 
+       [sfnt] Fix compiler warnings.
+
+       * src/sfnt/ttcolr.c (tt_face_load_colr, tt_face_load_colr_layers,
+       tt_face_colr_blend_layer): Add `NULL' initializers.
+
+2018-06-10  Werner Lemberg  <address@hidden>
+
        s/FT_Palette/FT_Palette_Data/, s/palette/palette_data/.
 
        * include/freetype/ftcolor.h, include/freetype/internal/tttypes.h,
diff --git a/src/sfnt/ttcolr.c b/src/sfnt/ttcolr.c
index d343365..64e8b25 100644
--- a/src/sfnt/ttcolr.c
+++ b/src/sfnt/ttcolr.c
@@ -203,7 +203,7 @@
     if ( cpal.version == 1 )
     {
       FT_ULong    type_offset, label_offset, entry_label_offset;
-      FT_UShort*  array;
+      FT_UShort*  array = NULL;
       FT_UShort*  limit;
       FT_UShort*  q;
 
@@ -372,7 +372,7 @@
     Colr*      colr          = &colr_and_cpal->colr;
 
     BaseGlyphRecord  glyph_record;
-    FT_Glyph_Layer   layers;
+    FT_Glyph_Layer   layers = NULL;
     int              layer_idx;
     FT_Byte*         layer_record_ptr;
 
@@ -524,7 +524,7 @@
         FT_UInt  rows  = (FT_UInt)( y_max - y_min );
         FT_UInt  pitch = width * 4;
 
-        FT_Byte*  buf;
+        FT_Byte*  buf = NULL;
         FT_Byte*  p;
         FT_Byte*  q;
 



reply via email to

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