From 01fbfd95ac6ed82a651f1c26062ae04b801060fc Mon Sep 17 00:00:00 2001 From: Hanspeter Portner Date: Sat, 6 Apr 2019 15:18:22 +0200 Subject: [PATCH] fix pedantic compiler warnings. --- canvas.lv2/render_cairo.h | 24 ++++++++++++++++-------- 1 file changed, 16 insertions(+), 8 deletions(-) diff --git a/canvas.lv2/render_cairo.h b/canvas.lv2/render_cairo.h index 86c3ec9..58aade6 100644 --- a/canvas.lv2/render_cairo.h +++ b/canvas.lv2/render_cairo.h @@ -30,7 +30,8 @@ extern "C" { static inline void _lv2_canvas_render_beginPath(void *data, - LV2_Canvas_URID *urid, const LV2_Atom *body) + LV2_Canvas_URID *urid __attribute__((unused)), + const LV2_Atom *body __attribute__((unused))) { cairo_t *ctx = data; cairo_new_sub_path(ctx); @@ -38,7 +39,8 @@ _lv2_canvas_render_beginPath(void *data, static inline void _lv2_canvas_render_closePath(void *data, - LV2_Canvas_URID *urid, const LV2_Atom *body) + LV2_Canvas_URID *urid __attribute__((unused)), + const LV2_Atom *body __attribute__((unused))) { cairo_t *ctx = data; cairo_close_path(ctx); @@ -235,7 +237,8 @@ _lv2_canvas_render_miterLimit(void *data, static inline void _lv2_canvas_render_stroke(void *data, - LV2_Canvas_URID *urid, const LV2_Atom *body) + LV2_Canvas_URID *urid __attribute__((unused)), + const LV2_Atom *body __attribute__((unused))) { cairo_t *ctx = data; cairo_stroke(ctx); @@ -243,7 +246,8 @@ _lv2_canvas_render_stroke(void *data, static inline void _lv2_canvas_render_fill(void *data, - LV2_Canvas_URID *urid, const LV2_Atom *body) + LV2_Canvas_URID *urid __attribute__((unused)), + const LV2_Atom *body __attribute__((unused))) { cairo_t *ctx = data; cairo_fill(ctx); @@ -251,7 +255,8 @@ _lv2_canvas_render_fill(void *data, static inline void _lv2_canvas_render_clip(void *data, - LV2_Canvas_URID *urid, const LV2_Atom *body) + LV2_Canvas_URID *urid __attribute__((unused)), + const LV2_Atom *body __attribute__((unused))) { cairo_t *ctx = data; cairo_clip(ctx); @@ -259,7 +264,8 @@ _lv2_canvas_render_clip(void *data, static inline void _lv2_canvas_render_save(void *data, - LV2_Canvas_URID *urid, const LV2_Atom *body) + LV2_Canvas_URID *urid __attribute__((unused)), + const LV2_Atom *body __attribute__((unused))) { cairo_t *ctx = data; cairo_save(ctx); @@ -267,7 +273,8 @@ _lv2_canvas_render_save(void *data, static inline void _lv2_canvas_render_restore(void *data, - LV2_Canvas_URID *urid, const LV2_Atom *body) + LV2_Canvas_URID *urid __attribute__((unused)), + const LV2_Atom *body __attribute__((unused))) { cairo_t *ctx = data; cairo_restore(ctx); @@ -336,7 +343,8 @@ _lv2_canvas_render_transform(void *data, static inline void _lv2_canvas_render_reset(void *data, - LV2_Canvas_URID *urid, const LV2_Atom *body) + LV2_Canvas_URID *urid __attribute__((unused)), + const LV2_Atom *body __attribute__((unused))) { cairo_t *ctx = data; cairo_identity_matrix(ctx); -- 2.38.5