From e96102604985bbc9934bab1eaa8e4a2e24e6c891 Mon Sep 17 00:00:00 2001 From: Ravi Nanjundappa Date: Wed, 14 May 2014 12:19:39 +0530 Subject: [PATCH] src : Fix warn_unused_result warnings from gcc Assign the return value to a local variable and then `(void) varname;` to avoid "unused" warning reported by gcc. Signed-off-by: Ravi Nanjundappa Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=58727 --- src/cairo-spans-private.h | 2 +- src/cairoint.h | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/cairo-spans-private.h b/src/cairo-spans-private.h index c42b5af..b158f4d 100644 --- a/src/cairo-spans-private.h +++ b/src/cairo-spans-private.h @@ -53,7 +53,7 @@ struct _cairo_span_renderer { /* Render the spans on row y of the destination by whatever compositing * method is required. */ - cairo_warn cairo_status_t + cairo_status_t (*render_rows) (void *abstract_renderer, int y, int height, const cairo_half_open_span_t *coverages, diff --git a/src/cairoint.h b/src/cairoint.h index 44e0ec5..080bb5d 100644 --- a/src/cairoint.h +++ b/src/cairoint.h @@ -1321,7 +1321,7 @@ cairo_private cairo_image_surface_t * _cairo_surface_map_to_image (cairo_surface_t *surface, const cairo_rectangle_int_t *extents); -cairo_private cairo_int_status_t +cairo_private_no_warn cairo_int_status_t _cairo_surface_unmap_image (cairo_surface_t *surface, cairo_image_surface_t *image); @@ -1609,18 +1609,18 @@ _cairo_polygon_limit_to_clip (cairo_polygon_t *polygon, cairo_private void _cairo_polygon_fini (cairo_polygon_t *polygon); -cairo_private cairo_status_t +cairo_private_no_warn cairo_status_t _cairo_polygon_add_line (cairo_polygon_t *polygon, const cairo_line_t *line, int top, int bottom, int dir); -cairo_private cairo_status_t +cairo_private_no_warn cairo_status_t _cairo_polygon_add_external_edge (void *polygon, const cairo_point_t *p1, const cairo_point_t *p2); -cairo_private cairo_status_t +cairo_private_no_warn cairo_status_t _cairo_polygon_add_contour (cairo_polygon_t *polygon, const cairo_contour_t *contour); -- 1.7.9.5