[cairo-commit] src/cairo-rectangle.c

Andrea Canciani ranma42 at kemper.freedesktop.org
Wed Oct 26 06:21:47 PDT 2011


 src/cairo-rectangle.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit 5c3156667898a1b111ae586c69c66378b7dafed6
Author: Andrea Canciani <ranma42 at gmail.com>
Date:   Wed Oct 26 15:10:59 2011 +0200

    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

diff --git a/src/cairo-rectangle.c b/src/cairo-rectangle.c
index edad369..aafec90 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);
 


More information about the cairo-commit mailing list