diff options
author | David Robillard <d@drobilla.net> | 2020-11-29 11:52:57 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-11-29 11:53:37 +0100 |
commit | 8c3e0c4d90fce56f59aab84f1f62aaf484706ce1 (patch) | |
tree | 06cfb0e27aaa946b2ebb2f911bff49c05e484a56 /ganv | |
parent | 29d31fd1a61e860c69a5a8b8b32156cea9075ae8 (diff) | |
download | ganv-8c3e0c4d90fce56f59aab84f1f62aaf484706ce1.tar.gz ganv-8c3e0c4d90fce56f59aab84f1f62aaf484706ce1.tar.bz2 ganv-8c3e0c4d90fce56f59aab84f1f62aaf484706ce1.zip |
Fix Wunused-parameter warnings
Diffstat (limited to 'ganv')
-rw-r--r-- | ganv/Item.hpp | 5 | ||||
-rw-r--r-- | ganv/Module.hpp | 4 | ||||
-rw-r--r-- | ganv/Node.hpp | 2 | ||||
-rw-r--r-- | ganv/wrap.hpp | 2 |
4 files changed, 6 insertions, 7 deletions
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*>(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<typename P, typename C> 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<bool, argtype>& signal_##name() { return _signal_##name; } \ private: \ sigc::signal<bool, argtype> _signal_##name; |