diff options
author | Matthias Clasen <mclasen@redhat.com> | 2022-06-10 17:50:04 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2022-06-10 17:50:04 -0400 |
commit | ce74afe4eb6f15cf3e7e60a4a917c31efb59dc4c (patch) | |
tree | c20e0bd36547117d57814272fd97967f3deab48b /examples | |
parent | ed2279cd6a8c835ce9676cbd1eb9b868a6ca25ab (diff) | |
download | pango-ce74afe4eb6f15cf3e7e60a4a917c31efb59dc4c.tar.gz |
cairotwisted: Fix another compiler warningexample-cflags
Diffstat (limited to 'examples')
-rw-r--r-- | examples/cairotwisted.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/cairotwisted.c b/examples/cairotwisted.c index 6d1dadac..f769bb29 100644 --- a/examples/cairotwisted.c +++ b/examples/cairotwisted.c @@ -167,7 +167,7 @@ curve_length (double x0, double y0, cairo_surface_t *surface; cairo_t *cr; cairo_path_t *path; - cairo_path_data_t *data, current_point = {0,}; + cairo_path_data_t *data, current_point = {{0,},}; int i; double length; @@ -218,7 +218,7 @@ static parametrization_t * parametrize_path (cairo_path_t *path) { int i; - cairo_path_data_t *data, last_move_to = {0,}, current_point = {0,}; + cairo_path_data_t *data, last_move_to = {{0,},}, current_point = {{0,},}; parametrization_t *parametrization; parametrization = g_malloc (path->num_data * sizeof (parametrization[0])); @@ -326,7 +326,7 @@ point_on_path (parametrized_path_t *param, { int i; double ratio, the_y = *y, the_x = *x, dx, dy; - cairo_path_data_t *data, last_move_to = {0,}, current_point = {0,}; + cairo_path_data_t *data, last_move_to = {{0,},}, current_point = {{0,},}; cairo_path_t *path = param->path; parametrization_t *parametrization = param->parametrization; |