diff options
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; |