summaryrefslogtreecommitdiffstats
path: root/src/Patchage.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2020-11-27 17:58:01 +0100
committerDavid Robillard <d@drobilla.net>2020-11-27 21:42:52 +0100
commit76e4307c2f57df359651dab61184fd521ffb1fbf (patch)
treec85f7aafeb55f6e6ee5074a856fb2cdda6019dc1 /src/Patchage.cpp
parent7240920afeb38fb12f6c0cacb1661b82bf09c1fc (diff)
downloadpatchage-76e4307c2f57df359651dab61184fd521ffb1fbf.tar.gz
patchage-76e4307c2f57df359651dab61184fd521ffb1fbf.tar.bz2
patchage-76e4307c2f57df359651dab61184fd521ffb1fbf.zip
Fix unused parameter warnings
Diffstat (limited to 'src/Patchage.cpp')
-rw-r--r--src/Patchage.cpp17
1 files changed, 9 insertions, 8 deletions
diff --git a/src/Patchage.cpp b/src/Patchage.cpp
index f02e22e..aca3a54 100644
--- a/src/Patchage.cpp
+++ b/src/Patchage.cpp
@@ -22,6 +22,7 @@
#include "PatchageEvent.hpp"
#include "UIFile.hpp"
#include "patchage_config.h"
+#include "warnings.hpp"
#if defined(HAVE_JACK_DBUS)
# include "JackDbusDriver.hpp"
@@ -38,8 +39,10 @@
# include "AlsaDriver.hpp"
#endif
+PATCHAGE_DISABLE_GANV_WARNINGS
#include "ganv/Edge.hpp"
#include "ganv/Module.hpp"
+PATCHAGE_RESTORE_WARNINGS
#include <boost/format.hpp>
#include <glib.h>
@@ -78,14 +81,14 @@ terminate_cb(GtkosxApplication* app, gpointer data)
#endif
static bool
-configure_cb(GtkWindow* parentWindow, GdkEvent* event, gpointer data)
+configure_cb(GtkWindow*, GdkEvent*, gpointer data)
{
static_cast<Patchage*>(data)->store_window_location();
return FALSE;
}
static int
-port_order(const GanvPort* a, const GanvPort* b, void* data)
+port_order(const GanvPort* a, const GanvPort* b, void*)
{
const auto* pa = dynamic_cast<const PatchagePort*>(Glib::wrap(a));
const auto* pb = dynamic_cast<const PatchagePort*>(Glib::wrap(b));
@@ -615,7 +618,7 @@ Patchage::warning_msg(const std::string& msg)
}
static void
-load_module_location(GanvNode* node, void* data)
+load_module_location(GanvNode* node, void*)
{
if (GANV_IS_MODULE(node)) {
Ganv::Module* gmod = Glib::wrap(GANV_MODULE(node));
@@ -962,9 +965,7 @@ update_edge_color(GanvEdge* edge, void* data)
}
void
-Patchage::on_legend_color_change(PortType id,
- const std::string& label,
- uint32_t rgba)
+Patchage::on_legend_color_change(PortType id, const std::string&, uint32_t rgba)
{
_conf->set_port_color(id, rgba);
_canvas->for_each_node(update_port_colors, this);
@@ -972,7 +973,7 @@ Patchage::on_legend_color_change(PortType id,
}
void
-Patchage::on_messages_resized(Gtk::Allocation& alloc)
+Patchage::on_messages_resized(Gtk::Allocation&)
{
const int max_pos = _main_paned->get_allocation().get_height();
_conf->set_messages_height(max_pos - _main_paned->get_position());
@@ -1088,7 +1089,7 @@ Patchage::on_view_toolbar()
}
bool
-Patchage::on_scroll(GdkEventScroll* ev)
+Patchage::on_scroll(GdkEventScroll*)
{
return false;
}