mirror of https://github.com/freetype/freetype
[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.
This commit is contained in:
parent
b405fc5c1d
commit
26e9028f10
|
@ -2109,7 +2109,8 @@
|
|||
FT_Error error = FT_Err_Ok;
|
||||
|
||||
FT_26D6_Vec aA, bB; /* A, B in the above comment */
|
||||
FT_26D6_Vec nearest_point; /* point on curve nearest to `point` */
|
||||
FT_26D6_Vec nearest_point = { 0, 0 };
|
||||
/* point on curve nearest to `point` */
|
||||
FT_26D6_Vec direction; /* direction of curve at `nearest_point` */
|
||||
|
||||
FT_26D6_Vec p0, p1, p2; /* control points of a conic curve */
|
||||
|
@ -2405,7 +2406,8 @@
|
|||
FT_Error error = FT_Err_Ok;
|
||||
|
||||
FT_26D6_Vec aA, bB, cC; /* A, B, C in the above comment */
|
||||
FT_26D6_Vec nearest_point; /* point on curve nearest to `point` */
|
||||
FT_26D6_Vec nearest_point = { 0, 0 };
|
||||
/* point on curve nearest to `point` */
|
||||
FT_26D6_Vec direction; /* direction of curve at `nearest_point` */
|
||||
|
||||
FT_26D6_Vec p0, p1, p2; /* control points of a conic curve */
|
||||
|
|
|
@ -207,7 +207,7 @@
|
|||
FT_Error error;
|
||||
|
||||
Svg_doc start_doc;
|
||||
Svg_doc mid_doc;
|
||||
Svg_doc mid_doc = { 0, 0, 0, 0 }; /* pacify compiler */
|
||||
Svg_doc end_doc;
|
||||
|
||||
FT_Bool found = FALSE;
|
||||
|
|
Loading…
Reference in New Issue