summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2022-06-10 17:50:04 -0400
committerMatthias Clasen <mclasen@redhat.com>2022-06-10 17:50:04 -0400
commitce74afe4eb6f15cf3e7e60a4a917c31efb59dc4c (patch)
treec20e0bd36547117d57814272fd97967f3deab48b /examples
parented2279cd6a8c835ce9676cbd1eb9b868a6ca25ab (diff)
downloadpango-ce74afe4eb6f15cf3e7e60a4a917c31efb59dc4c.tar.gz
cairotwisted: Fix another compiler warningexample-cflags
Diffstat (limited to 'examples')
-rw-r--r--examples/cairotwisted.c6
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;