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 --- ganv/Item.hpp | 5 +---- ganv/Module.hpp | 4 +++- ganv/Node.hpp | 2 +- ganv/wrap.hpp | 2 +- 4 files changed, 6 insertions(+), 7 deletions(-) (limited to 'ganv') diff --git a/ganv/Item.hpp b/ganv/Item.hpp index ebeb865..fcb98ef 100644 --- a/ganv/Item.hpp +++ b/ganv/Item.hpp @@ -76,10 +76,7 @@ protected: GanvItem* const _gobj; private: - static gboolean - on_item_event(GanvItem* canvasitem, - GdkEvent* ev, - void* item) + static gboolean on_item_event(GanvItem*, GdkEvent* ev, void* item) { return static_cast(item)->signal_event().emit(ev); } diff --git a/ganv/Module.hpp b/ganv/Module.hpp index f076a70..00d295d 100644 --- a/ganv/Module.hpp +++ b/ganv/Module.hpp @@ -59,7 +59,9 @@ public: "label", name.c_str(), "draggable", TRUE, nullptr))) - {} + { + (void)show_title; + } template class iterator_base { diff --git a/ganv/Node.hpp b/ganv/Node.hpp index ed983fe..c40a7ea 100644 --- a/ganv/Node.hpp +++ b/ganv/Node.hpp @@ -33,7 +33,7 @@ class Node; */ class Node : public Item { public: - Node(Canvas* canvas, GanvNode* gobj) + Node(Canvas*, GanvNode* gobj) : Item(GANV_ITEM(g_object_ref(gobj))) { g_signal_connect(gobj, "moved", G_CALLBACK(on_moved), this); diff --git a/ganv/wrap.hpp b/ganv/wrap.hpp index f1659a7..57e6da6 100644 --- a/ganv/wrap.hpp +++ b/ganv/wrap.hpp @@ -25,7 +25,7 @@ #define SIGNAL1(name, argtype) \ public: \ - virtual bool on_##name(argtype arg) { return true; } \ + virtual bool on_##name(argtype) { return true; } \ sigc::signal& signal_##name() { return _signal_##name; } \ private: \ sigc::signal _signal_##name; -- cgit v1.2.1