freetype-commit
[Top][All Lists]
Advanced

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

[Git][freetype/freetype][master] [sdf, sfnt] Handle minor compiler warni


From: Werner Lemberg (@wl)
Subject: [Git][freetype/freetype][master] [sdf, sfnt] Handle minor compiler warnings.
Date: Tue, 13 Dec 2022 08:56:06 +0000

Werner Lemberg pushed to branch master at FreeType / FreeType

Commits:

  • 26e9028f
    by Werner Lemberg at 2022-12-13T09:53:26+01:00
    [sdf, sfnt] Handle minor compiler warnings.
    
    * src/sdf/ftsdf.c (get_min_distance_conic): Initialize `nearest_point`.
    
    * src/sfnt/ttsvg.c (find_doc): Initialize `mid_doc`.
    
    Fixes #1195.
    

2 changed files:

Changes:

  • src/sdf/ftsdf.c
    ... ... @@ -2109,7 +2109,8 @@
    2109 2109
         FT_Error  error = FT_Err_Ok;
    
    2110 2110
     
    
    2111 2111
         FT_26D6_Vec  aA, bB;         /* A, B in the above comment             */
    
    2112
    -    FT_26D6_Vec  nearest_point;  /* point on curve nearest to `point`     */
    
    2112
    +    FT_26D6_Vec  nearest_point = { 0, 0 };
    
    2113
    +                                 /* point on curve nearest to `point`     */
    
    2113 2114
         FT_26D6_Vec  direction;      /* direction of curve at `nearest_point` */
    
    2114 2115
     
    
    2115 2116
         FT_26D6_Vec  p0, p1, p2;     /* control points of a conic curve       */
    
    ... ... @@ -2405,7 +2406,8 @@
    2405 2406
         FT_Error  error = FT_Err_Ok;
    
    2406 2407
     
    
    2407 2408
         FT_26D6_Vec  aA, bB, cC;     /* A, B, C in the above comment          */
    
    2408
    -    FT_26D6_Vec  nearest_point;  /* point on curve nearest to `point`     */
    
    2409
    +    FT_26D6_Vec  nearest_point = { 0, 0 };
    
    2410
    +                                 /* point on curve nearest to `point`     */
    
    2409 2411
         FT_26D6_Vec  direction;      /* direction of curve at `nearest_point` */
    
    2410 2412
     
    
    2411 2413
         FT_26D6_Vec  p0, p1, p2;     /* control points of a conic curve       */
    

  • src/sfnt/ttsvg.c
    ... ... @@ -207,7 +207,7 @@
    207 207
         FT_Error  error;
    
    208 208
     
    
    209 209
         Svg_doc  start_doc;
    
    210
    -    Svg_doc  mid_doc;
    
    210
    +    Svg_doc  mid_doc = { 0, 0, 0, 0 }; /* pacify compiler */
    
    211 211
         Svg_doc  end_doc;
    
    212 212
     
    
    213 213
         FT_Bool  found = FALSE;
    


  • reply via email to

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