From 5585cabd9c1e8de3e34c40ee46a449d18f7cab0a Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 17 Dec 2020 11:57:15 +0100 Subject: Fix unused parameter warnings --- src/ganv_test.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/ganv_test.c b/src/ganv_test.c index c2e1534..b707c03 100644 --- a/src/ganv_test.c +++ b/src/ganv_test.c @@ -20,24 +20,33 @@ static void on_window_destroy(GtkWidget* widget, void* data) { + (void)widget; + (void)data; + gtk_main_quit(); } static void on_connect(GanvCanvas* canvas, GanvNode* tail, GanvNode* head, void* data) { + (void)data; + ganv_edge_new(canvas, tail, head, "color", 0xFFFFFFFF, NULL); } static void on_disconnect(GanvCanvas* canvas, GanvNode* tail, GanvNode* head, void* data) { + (void)data; + ganv_canvas_remove_edge_between(canvas, tail, head); } static void on_value_changed(GanvPort* port, double value, void* data) { + (void)data; + fprintf(stderr, "Value changed: port %p = %lf\n", (void*)port, value); } -- cgit v1.2.1