freetype-commit
[Top][All Lists]
Advanced

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

[Git][freetype/freetype][master] Fix clang++ warnings.


From: Werner Lemberg (@wl)
Subject: [Git][freetype/freetype][master] Fix clang++ warnings.
Date: Tue, 16 Nov 2021 21:09:15 +0000

Werner Lemberg pushed to branch master at FreeType / FreeType

Commits:

9 changed files:

Changes:

  • src/base/ftobjs.c
    ... ... @@ -3744,7 +3744,7 @@
    3744 3744
         FT_Error   error;
    
    3745 3745
         FT_Face    face;
    
    3746 3746
         FT_Memory  memory;
    
    3747
    -    FT_CMap    cmap;
    
    3747
    +    FT_CMap    cmap = NULL;
    
    3748 3748
     
    
    3749 3749
     
    
    3750 3750
         if ( !clazz || !charmap || !charmap->face )
    
    ... ... @@ -4459,7 +4459,7 @@
    4459 4459
         FT_Library   library = module->library;
    
    4460 4460
         FT_Memory    memory  = library->memory;
    
    4461 4461
         FT_Error     error;
    
    4462
    -    FT_ListNode  node;
    
    4462
    +    FT_ListNode  node    = NULL;
    
    4463 4463
     
    
    4464 4464
     
    
    4465 4465
         if ( FT_QNEW( node ) )
    

  • src/cache/ftcmanag.c
    ... ... @@ -357,7 +357,7 @@
    357 357
       {
    
    358 358
         FT_Error     error;
    
    359 359
         FT_Memory    memory;
    
    360
    -    FTC_Manager  manager;
    
    360
    +    FTC_Manager  manager = NULL;
    
    361 361
     
    
    362 362
     
    
    363 363
         if ( !library )
    

  • src/cache/ftcmru.c
    ... ... @@ -237,7 +237,7 @@
    237 237
                        FTC_MruNode  *anode )
    
    238 238
       {
    
    239 239
         FT_Error     error;
    
    240
    -    FTC_MruNode  node;
    
    240
    +    FTC_MruNode  node   = NULL;
    
    241 241
         FT_Memory    memory = list->memory;
    
    242 242
     
    
    243 243
     
    

  • src/cff/cffdrivr.c
    ... ... @@ -473,9 +473,9 @@
    473 473
     
    
    474 474
         if ( cff && !cff->font_info )
    
    475 475
         {
    
    476
    -      CFF_FontRecDict  dict   = &cff->top_font.font_dict;
    
    477
    -      FT_Memory        memory = face->root.memory;
    
    478
    -      PS_FontInfoRec*  font_info;
    
    476
    +      CFF_FontRecDict  dict      = &cff->top_font.font_dict;
    
    477
    +      FT_Memory        memory    = face->root.memory;
    
    478
    +      PS_FontInfoRec*  font_info = NULL;
    
    479 479
     
    
    480 480
     
    
    481 481
           if ( FT_QNEW( font_info ) )
    
    ... ... @@ -517,9 +517,9 @@
    517 517
     
    
    518 518
         if ( cff && !cff->font_extra )
    
    519 519
         {
    
    520
    -      CFF_FontRecDict   dict   = &cff->top_font.font_dict;
    
    521
    -      FT_Memory         memory = face->root.memory;
    
    522
    -      PS_FontExtraRec*  font_extra;
    
    520
    +      CFF_FontRecDict   dict       = &cff->top_font.font_dict;
    
    521
    +      FT_Memory         memory     = face->root.memory;
    
    522
    +      PS_FontExtraRec*  font_extra = NULL;
    
    523 523
           FT_String*        embedded_postscript;
    
    524 524
     
    
    525 525
     
    

  • src/psaux/psstack.c
    ... ... @@ -54,8 +54,8 @@
    54 54
                       FT_Error*  e,
    
    55 55
                       FT_UInt    stackSize )
    
    56 56
       {
    
    57
    -    FT_Error   error;     /* for FT_QNEW */
    
    58
    -    CF2_Stack  stack;
    
    57
    +    FT_Error   error;        /* for FT_QNEW */
    
    58
    +    CF2_Stack  stack = NULL;
    
    59 59
     
    
    60 60
     
    
    61 61
         if ( FT_QNEW( stack ) )
    

  • src/raster/ftraster.c
    ... ... @@ -3171,7 +3171,7 @@
    3171 3171
                     black_PRaster  *araster )
    
    3172 3172
       {
    
    3173 3173
         FT_Error       error;
    
    3174
    -    black_PRaster  raster;
    
    3174
    +    black_PRaster  raster = NULL;
    
    3175 3175
     
    
    3176 3176
     
    
    3177 3177
         if ( !FT_NEW( raster ) )
    

  • src/sdf/ftbsdf.c
    ... ... @@ -1177,7 +1177,7 @@
    1177 1177
                        BSDF_PRaster*  araster )
    
    1178 1178
       {
    
    1179 1179
         FT_Error      error;
    
    1180
    -    BSDF_PRaster  raster;
    
    1180
    +    BSDF_PRaster  raster = NULL;
    
    1181 1181
     
    
    1182 1182
     
    
    1183 1183
         if ( !FT_NEW( raster ) )
    

  • src/sdf/ftsdf.c
    ... ... @@ -3710,7 +3710,7 @@
    3710 3710
                       SDF_PRaster*  araster )
    
    3711 3711
       {
    
    3712 3712
         FT_Error     error;
    
    3713
    -    SDF_PRaster  raster;
    
    3713
    +    SDF_PRaster  raster = NULL;
    
    3714 3714
     
    
    3715 3715
     
    
    3716 3716
         if ( !FT_NEW( raster ) )
    

  • src/smooth/ftgrays.c
    ... ... @@ -2151,7 +2151,7 @@ typedef ptrdiff_t FT_PtrDist;
    2151 2151
                        gray_PRaster*  araster )
    
    2152 2152
       {
    
    2153 2153
         FT_Error      error;
    
    2154
    -    gray_PRaster  raster;
    
    2154
    +    gray_PRaster  raster = NULL;
    
    2155 2155
     
    
    2156 2156
     
    
    2157 2157
         if ( !FT_NEW( raster ) )
    


  • reply via email to

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