aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Hanspeter Portner <dev@open-music-kontrollers.ch>2019-04-06 15:18:22 +0200
committerGravatar Hanspeter Portner <dev@open-music-kontrollers.ch>2019-04-06 15:18:22 +0200
commit01fbfd95ac6ed82a651f1c26062ae04b801060fc (patch)
tree866206a2a9576a99fa22c901289c237eb3bd5af8
parent3259ea1e878b27e387d21be405038c92da6c8ed2 (diff)
downloadcanvas.lv2-01fbfd95ac6ed82a651f1c26062ae04b801060fc.zip
canvas.lv2-01fbfd95ac6ed82a651f1c26062ae04b801060fc.tar.gz
canvas.lv2-01fbfd95ac6ed82a651f1c26062ae04b801060fc.tar.bz2
canvas.lv2-01fbfd95ac6ed82a651f1c26062ae04b801060fc.tar.xz
fix pedantic compiler warnings.
-rw-r--r--canvas.lv2/render_cairo.h24
1 files 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);