summaryrefslogtreecommitdiffstats
path: root/src/node.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2020-11-29 11:52:57 +0100
committerDavid Robillard <d@drobilla.net>2020-11-29 11:53:37 +0100
commit8c3e0c4d90fce56f59aab84f1f62aaf484706ce1 (patch)
tree06cfb0e27aaa946b2ebb2f911bff49c05e484a56 /src/node.c
parent29d31fd1a61e860c69a5a8b8b32156cea9075ae8 (diff)
downloadganv-8c3e0c4d90fce56f59aab84f1f62aaf484706ce1.tar.gz
ganv-8c3e0c4d90fce56f59aab84f1f62aaf484706ce1.tar.bz2
ganv-8c3e0c4d90fce56f59aab84f1f62aaf484706ce1.zip
Fix Wunused-parameter warnings
Diffstat (limited to 'src/node.c')
-rw-r--r--src/node.c11
1 files changed, 11 insertions, 0 deletions
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;