diff options
author | Adrian Johnson <ajohnson@redneon.com> | 2021-08-16 18:23:17 +0930 |
---|---|---|
committer | Adrian Johnson <ajohnson@redneon.com> | 2021-08-22 12:07:36 +0930 |
commit | ba3823e6b82c76bfe962f570dbf48e7c6a8126a6 (patch) | |
tree | c71766c03eabf1d5d923f93f4216db1c91f3e245 /src/cairo-path-in-fill.c | |
parent | 2dec76ddfe9499b5a6efc1ccc8e52536a314543b (diff) | |
download | cairo-ba3823e6b82c76bfe962f570dbf48e7c6a8126a6.tar.gz |
Fix cast between incompatible function types warnings
warning: cast between incompatible function types from ‘cairo_status_t (*)(void *, const cairo_point_t *)’ {aka ‘enum _cairo_status (*)(void *, const struct _cairo_point *)’} to ‘cairo_status_t (*)(void *, const cairo_point_t *, const cairo_slope_t *)’ {aka ‘enum _cairo_status (*)(void *, const struct _cairo_point *, const struct _cairo_slope *)’} [-Wcast-function-type]
Diffstat (limited to 'src/cairo-path-in-fill.c')
-rw-r--r-- | src/cairo-path-in-fill.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/cairo-path-in-fill.c b/src/cairo-path-in-fill.c index 1787fb1a3..342d5a28e 100644 --- a/src/cairo-path-in-fill.c +++ b/src/cairo-path-in-fill.c @@ -184,6 +184,14 @@ _cairo_in_fill_line_to (void *closure, } static cairo_status_t +_cairo_in_fill_add_point (void *closure, + const cairo_point_t *point, + const cairo_slope_t *tangent) +{ + return _cairo_in_fill_line_to (closure, point); +}; + +static cairo_status_t _cairo_in_fill_curve_to (void *closure, const cairo_point_t *b, const cairo_point_t *c, @@ -217,7 +225,7 @@ _cairo_in_fill_curve_to (void *closure, /* XXX Investigate direct inspection of the inflections? */ if (! _cairo_spline_init (&spline, - (cairo_spline_add_point_func_t)_cairo_in_fill_line_to, + _cairo_in_fill_add_point, in_fill, &in_fill->current_point, b, c, d)) { |