From 8c3e0c4d90fce56f59aab84f1f62aaf484706ce1 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 29 Nov 2020 11:52:57 +0100 Subject: Fix Wunused-parameter warnings --- src/node.c | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/node.c') diff --git a/src/node.c b/src/node.c index c7648de..c93e116 100644 --- a/src/node.c +++ b/src/node.c @@ -168,6 +168,13 @@ static void ganv_node_draw(GanvItem* item, cairo_t* cr, double cx, double cy, double cw, double ch) { + (void)item; + (void)cr; + (void)cx; + (void)cy; + (void)cw; + (void)ch; + /* TODO: Label is not drawn here because ports need to draw control rects then the label on top. I can't see a way of solving this since there's no single time parent class draw needs to be called, so perhaps @@ -280,6 +287,8 @@ ganv_node_default_tail_vector(const GanvNode* self, double* dx, double* dy) { + (void)head; + GanvCanvas* canvas = ganv_item_get_canvas(GANV_ITEM(self)); *x = GANV_ITEM(self)->impl->x; @@ -307,6 +316,8 @@ ganv_node_default_head_vector(const GanvNode* self, double* dx, double* dy) { + (void)tail; + GanvCanvas* canvas = ganv_item_get_canvas(GANV_ITEM(self)); *x = GANV_ITEM(self)->impl->x; -- cgit v1.2.1