From 5c3156667898a1b111ae586c69c66378b7dafed6 Mon Sep 17 00:00:00 2001 From: Andrea Canciani Date: Wed, 26 Oct 2011 15:10:59 +0200 Subject: [PATCH] rectangle: Fix warning In 545f3085.. the cairo_spline_add_point_func_t type was modified to accept the tangent in the point, but cairo-rectangle.c was not updated accordingly. Fixes: cairo-rectangle.c: In function '_cairo_box_add_curve_to': cairo-rectangle.c:297:11: warning: passing argument 1 of '_cairo_spline_bound' from incompatible pointer type --- src/cairo-rectangle.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/cairo-rectangle.c b/src/cairo-rectangle.c index edad369bd..aafec9075 100644 --- a/src/cairo-rectangle.c +++ b/src/cairo-rectangle.c @@ -272,7 +272,8 @@ _cairo_box_intersects_line_segment (cairo_box_t *box, cairo_line_t *line) static cairo_status_t _cairo_box_add_spline_point (void *closure, - const cairo_point_t *point) + const cairo_point_t *point, + const cairo_slope_t *tangent) { _cairo_box_add_point (closure, point);