summaryrefslogtreecommitdiff
path: root/libs
diff options
context:
space:
mode:
authorCarl Hetherington <carl@carlh.net>2009-07-21 15:55:17 +0000
committerCarl Hetherington <carl@carlh.net>2009-07-21 15:55:17 +0000
commitb65f8073ba306ac2d85133875746767e7c6b0eb6 (patch)
tree86e598b4cfe92aa8eaca558b85e1a4c397fa3f0e /libs
parentf41149628955fc8145bef6db0c110b71664c0a3a (diff)
Fix some unused parameter warnings.
git-svn-id: svn://localhost/ardour2/branches/3.0@5403 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs')
-rw-r--r--libs/ardour/amp.cc2
-rw-r--r--libs/ardour/ardour/automatable.h3
-rw-r--r--libs/ardour/ardour/automatable_sequence.h2
-rw-r--r--libs/ardour/ardour/diskstream.h8
-rw-r--r--libs/ardour/ardour/export_channel.h4
-rw-r--r--libs/ardour/ardour/export_utilities.h2
-rw-r--r--libs/ardour/ardour/interpolation.h4
-rw-r--r--libs/ardour/ardour/ladspa_plugin.h2
-rw-r--r--libs/ardour/ardour/lv2_plugin.h2
-rw-r--r--libs/ardour/ardour/midi_region.h2
-rw-r--r--libs/ardour/ardour/panner.h2
-rw-r--r--libs/ardour/ardour/playlist.h8
-rw-r--r--libs/ardour/ardour/plugin.h4
-rw-r--r--libs/ardour/ardour/port.h4
-rw-r--r--libs/ardour/ardour/processor.h8
-rw-r--r--libs/ardour/ardour/region.h5
-rw-r--r--libs/ardour/ardour/route.h2
-rw-r--r--libs/ardour/ardour/route_group_specialized.h2
-rw-r--r--libs/ardour/ardour/session.h10
-rw-r--r--libs/ardour/ardour/silentfilesource.h10
-rw-r--r--libs/ardour/ardour/slave.h6
-rw-r--r--libs/ardour/ardour/source.h2
-rw-r--r--libs/ardour/ardour/track.h4
-rw-r--r--libs/ardour/audio_diskstream.cc14
-rw-r--r--libs/ardour/audio_playlist.cc2
-rw-r--r--libs/ardour/audio_track.cc2
-rw-r--r--libs/ardour/audioengine.cc4
-rw-r--r--libs/ardour/audiofilesource.cc4
-rw-r--r--libs/ardour/audioregion.cc12
-rw-r--r--libs/ardour/audiosource.cc4
-rw-r--r--libs/ardour/auditioner.cc2
-rw-r--r--libs/ardour/crossfade.cc2
-rw-r--r--libs/ardour/delivery.cc4
-rw-r--r--libs/ardour/diskstream.cc6
-rw-r--r--libs/ardour/export_format_manager.cc2
-rw-r--r--libs/ardour/file_source.cc2
-rw-r--r--libs/ardour/gain.cc8
-rw-r--r--libs/ardour/import.cc4
-rw-r--r--libs/ardour/internal_return.cc2
-rw-r--r--libs/ardour/interpolation.cc4
-rw-r--r--libs/ardour/io.cc6
-rw-r--r--libs/ardour/io_processor.cc2
-rw-r--r--libs/ardour/location.cc2
-rw-r--r--libs/ardour/lv2_event_buffer.cc2
-rw-r--r--libs/ardour/lv2_plugin.cc2
-rw-r--r--libs/ardour/meter.cc2
-rw-r--r--libs/ardour/midi_buffer.cc4
-rw-r--r--libs/ardour/midi_clock_slave.cc10
-rw-r--r--libs/ardour/midi_diskstream.cc14
-rw-r--r--libs/ardour/midi_playlist.cc8
-rw-r--r--libs/ardour/midi_port.cc2
-rw-r--r--libs/ardour/midi_region.cc2
-rw-r--r--libs/ardour/midi_source.cc2
-rw-r--r--libs/ardour/midi_track.cc10
-rw-r--r--libs/ardour/mtc_slave.cc2
-rw-r--r--libs/ardour/named_selection.cc2
-rw-r--r--libs/ardour/panner.cc12
-rw-r--r--libs/ardour/plugin_insert.cc4
-rw-r--r--libs/ardour/plugin_manager.cc6
-rw-r--r--libs/ardour/region.cc22
-rw-r--r--libs/ardour/route.cc22
-rw-r--r--libs/ardour/session.cc14
-rw-r--r--libs/ardour/session_midi.cc30
-rw-r--r--libs/ardour/session_state.cc10
-rw-r--r--libs/ardour/session_time.cc8
-rw-r--r--libs/ardour/sndfileimportable.cc2
-rw-r--r--libs/ardour/sndfilesource.cc2
-rw-r--r--libs/ardour/template_utils.cc2
-rw-r--r--libs/ardour/ticker.cc2
-rw-r--r--libs/ardour/track.cc4
-rw-r--r--libs/ardour/uri_map.cc2
-rw-r--r--libs/evoral/src/ControlList.cpp4
-rw-r--r--libs/evoral/src/libsmf/smf_load.c4
-rw-r--r--libs/gtkmm2ext/auto_spin.cc2
-rw-r--r--libs/gtkmm2ext/barcontroller.cc6
-rw-r--r--libs/gtkmm2ext/binding_proxy.cc2
-rw-r--r--libs/gtkmm2ext/cell_renderer_pixbuf_toggle.cc4
-rw-r--r--libs/gtkmm2ext/click_box.cc5
-rw-r--r--libs/gtkmm2ext/fastmeter.cc2
-rw-r--r--libs/gtkmm2ext/gtk_ui.cc8
-rw-r--r--libs/gtkmm2ext/gtkmm2ext/barcontroller.h2
-rw-r--r--libs/gtkmm2ext/popup.cc4
-rw-r--r--libs/gtkmm2ext/prompter.cc2
-rw-r--r--libs/gtkmm2ext/slider_controller.cc2
-rw-r--r--libs/gtkmm2ext/tearoff.cc8
-rw-r--r--libs/midi++2/jack_midiport.cc2
-rw-r--r--libs/midi++2/midi++/fd_midiport.h2
-rw-r--r--libs/midi++2/midichannel.cc26
-rw-r--r--libs/midi++2/midifactory.cc4
-rw-r--r--libs/midi++2/midiparser.cc2
-rw-r--r--libs/midi++2/midiport.cc4
-rw-r--r--libs/midi++2/mmc.cc16
-rw-r--r--libs/pbd/pathscanner.cc2
-rw-r--r--libs/pbd/pbd/controllable.h2
-rw-r--r--libs/pbd/stacktrace.cc2
-rw-r--r--libs/rubberband/src/HighFrequencyAudioCurve.cpp4
-rw-r--r--libs/rubberband/src/PercussiveAudioCurve.cpp4
-rw-r--r--libs/rubberband/src/SpectralDifferenceAudioCurve.cpp4
-rw-r--r--libs/rubberband/src/Thread.cpp2
-rw-r--r--libs/surfaces/control_protocol/control_protocol/control_protocol.h2
-rw-r--r--libs/surfaces/generic_midi/generic_midi_control_protocol.cc2
-rw-r--r--libs/surfaces/generic_midi/interface.cc6
-rw-r--r--libs/surfaces/generic_midi/midicontrollable.cc10
-rw-r--r--libs/surfaces/osc/interface.cc6
-rw-r--r--libs/surfaces/osc/osc.cc13
-rw-r--r--libs/surfaces/osc/osc.h6
-rw-r--r--libs/surfaces/osc/osc_controllable.cc2
-rw-r--r--libs/surfaces/powermate/interface.cc6
-rw-r--r--libs/surfaces/powermate/powermate.cc2
-rw-r--r--libs/vamp-plugins/AmplitudeFollower.cpp2
-rw-r--r--libs/vamp-sdk/src/vamp-sdk/PluginAdapter.cpp2
111 files changed, 294 insertions, 286 deletions
diff --git a/libs/ardour/amp.cc b/libs/ardour/amp.cc
index cc63353886..c5183eb3db 100644
--- a/libs/ardour/amp.cc
+++ b/libs/ardour/amp.cc
@@ -71,7 +71,7 @@ Amp::configure_io (ChanCount in, ChanCount out)
}
void
-Amp::run (BufferSet& bufs, sframes_t start_frame, sframes_t end_frame, nframes_t nframes)
+Amp::run (BufferSet& bufs, sframes_t /*start_frame*/, sframes_t /*end_frame*/, nframes_t nframes)
{
gain_t mute_gain;
diff --git a/libs/ardour/ardour/automatable.h b/libs/ardour/ardour/automatable.h
index ed98e8d8ba..7fac339f77 100644
--- a/libs/ardour/ardour/automatable.h
+++ b/libs/ardour/ardour/automatable.h
@@ -101,8 +101,7 @@ public:
void can_automate(Evoral::Parameter);
- virtual void auto_state_changed (Evoral::Parameter which) {}
-
+ virtual void auto_state_changed (Evoral::Parameter /*which*/) {}
int load_automation (const std::string& path);
int old_set_automation_state(const XMLNode&);
diff --git a/libs/ardour/ardour/automatable_sequence.h b/libs/ardour/ardour/automatable_sequence.h
index a1d34ae92d..23ebb161c8 100644
--- a/libs/ardour/ardour/automatable_sequence.h
+++ b/libs/ardour/ardour/automatable_sequence.h
@@ -29,7 +29,7 @@ namespace ARDOUR {
template<typename T>
class AutomatableSequence : public Automatable, public Evoral::Sequence<T> {
public:
- AutomatableSequence(Session& s, size_t size)
+ AutomatableSequence(Session& s, size_t /*size*/)
: Evoral::ControlSet()
, Automatable(s)
, Evoral::Sequence<T>(EventTypeMap::instance())
diff --git a/libs/ardour/ardour/diskstream.h b/libs/ardour/ardour/diskstream.h
index 8a51a3d570..9eb5bae3de 100644
--- a/libs/ardour/ardour/diskstream.h
+++ b/libs/ardour/ardour/diskstream.h
@@ -94,9 +94,9 @@ class Diskstream : public SessionObject, public boost::noncopyable
virtual void set_record_enabled (bool yn) = 0;
bool destructive() const { return _flags & Destructive; }
- virtual int set_destructive (bool yn) { return -1; }
- virtual int set_non_layered (bool yn) { return -1; }
- virtual bool can_become_destructive (bool& requires_bounce) const { return false; }
+ virtual int set_destructive (bool /*yn*/) { return -1; }
+ virtual int set_non_layered (bool /*yn*/) { return -1; }
+ virtual bool can_become_destructive (bool& /*requires_bounce*/) const { return false; }
bool hidden() const { return _flags & Hidden; }
bool recordable() const { return _flags & Recordable; }
@@ -109,7 +109,7 @@ class Diskstream : public SessionObject, public boost::noncopyable
void set_speed (double);
void non_realtime_set_speed ();
- virtual void non_realtime_locate (nframes_t location) {};
+ virtual void non_realtime_locate (nframes_t /*location*/) {};
virtual void playlist_modified ();
boost::shared_ptr<Playlist> playlist () { return _playlist; }
diff --git a/libs/ardour/ardour/export_channel.h b/libs/ardour/ardour/export_channel.h
index 326d1fd9a4..4fe1efa294 100644
--- a/libs/ardour/ardour/export_channel.h
+++ b/libs/ardour/ardour/export_channel.h
@@ -131,8 +131,8 @@ class RegionExportChannel : public ExportChannel
public:
void read (Sample * data, nframes_t frames_to_read) const { factory.read (channel, data, frames_to_read); }
- void get_state (XMLNode * node) const {};
- void set_state (XMLNode * node, Session & session) {};
+ void get_state (XMLNode * /*node*/) const {};
+ void set_state (XMLNode * /*node*/, Session & /*session*/) {};
bool empty () const { return false; }
// Region export should never have duplicate channels, so there need not be any semantics here
bool operator< (ExportChannel const & other) const { return this < &other; }
diff --git a/libs/ardour/ardour/export_utilities.h b/libs/ardour/ardour/export_utilities.h
index 1da79a8d39..a9044345a6 100644
--- a/libs/ardour/ardour/export_utilities.h
+++ b/libs/ardour/ardour/export_utilities.h
@@ -137,7 +137,7 @@ class Normalizer : public GraphSinkVertex<float, float>
class NullSink : public GraphSink<float>
{
public:
- nframes_t write (float * data, nframes_t frames) { return frames; }
+ nframes_t write (float * /*data*/, nframes_t frames) { return frames; }
};
diff --git a/libs/ardour/ardour/interpolation.h b/libs/ardour/ardour/interpolation.h
index 1ebdafefa2..01ca994d7d 100644
--- a/libs/ardour/ardour/interpolation.h
+++ b/libs/ardour/ardour/interpolation.h
@@ -21,7 +21,7 @@ class Interpolation {
double target_speed() const { return _target_speed; }
double speed() const { return _speed; }
- void add_channel_to (int input_buffer_size, int output_buffer_size) {}
+ void add_channel_to (int /*input_buffer_size*/, int /*output_buffer_size*/) {}
void remove_channel_from () {}
void reset () {}
@@ -101,7 +101,7 @@ class LibSamplerateInterpolation : public Interpolation {
~LibSamplerateInterpolation ();
void set_speed (double new_speed);
- void set_target_speed (double new_speed) {}
+ void set_target_speed (double /*new_speed*/) {}
double speed () const { return _speed; }
void add_channel_to (int input_buffer_size, int output_buffer_size);
diff --git a/libs/ardour/ardour/ladspa_plugin.h b/libs/ardour/ardour/ladspa_plugin.h
index 847b582432..b610a87567 100644
--- a/libs/ardour/ardour/ladspa_plugin.h
+++ b/libs/ardour/ardour/ladspa_plugin.h
@@ -82,7 +82,7 @@ class LadspaPlugin : public ARDOUR::Plugin
_descriptor->cleanup (_handle);
}
- void set_block_size (nframes_t nframes) {}
+ void set_block_size (nframes_t /*nframes*/) {}
int connect_and_run (BufferSet& bufs,
ChanMapping in, ChanMapping out,
diff --git a/libs/ardour/ardour/lv2_plugin.h b/libs/ardour/ardour/lv2_plugin.h
index e7a755e4fc..1136f75cb6 100644
--- a/libs/ardour/ardour/lv2_plugin.h
+++ b/libs/ardour/ardour/lv2_plugin.h
@@ -94,7 +94,7 @@ class LV2Plugin : public ARDOUR::Plugin
_instance = NULL;
}
- void set_block_size (nframes_t nframes) {}
+ void set_block_size (nframes_t /*nframes*/) {}
int connect_and_run (BufferSet& bufs,
ChanMapping in, ChanMapping out,
diff --git a/libs/ardour/ardour/midi_region.h b/libs/ardour/ardour/midi_region.h
index 6a4d492237..93a9f76f31 100644
--- a/libs/ardour/ardour/midi_region.h
+++ b/libs/ardour/ardour/midi_region.h
@@ -52,7 +52,7 @@ class MidiRegion : public Region
boost::shared_ptr<MidiSource> midi_source (uint32_t n=0) const;
/* Stub Readable interface */
- virtual nframes_t read (Sample*, sframes_t pos, nframes_t cnt, int channel) const { return 0; }
+ virtual nframes_t read (Sample*, sframes_t /*pos*/, nframes_t /*cnt*/, int /*channel*/) const { return 0; }
virtual sframes_t readable_length() const { return length(); }
nframes_t read_at (MidiRingBuffer<nframes_t>& dst,
diff --git a/libs/ardour/ardour/panner.h b/libs/ardour/ardour/panner.h
index 3c66046ad1..474b3193c7 100644
--- a/libs/ardour/ardour/panner.h
+++ b/libs/ardour/ardour/panner.h
@@ -210,7 +210,7 @@ class Panner : public SessionObject, public AutomatableControls
AutoStyle automation_style() const;
bool touching() const;
- bool can_support_io_configuration (const ChanCount& in, ChanCount& out) const { return true; };
+ bool can_support_io_configuration (const ChanCount& /*in*/, ChanCount& /*out*/) const { return true; };
/// The fundamental Panner function
void run (BufferSet& src, BufferSet& dest, sframes_t start_frame, sframes_t end_frames, nframes_t nframes);
diff --git a/libs/ardour/ardour/playlist.h b/libs/ardour/ardour/playlist.h
index 35b7fa9069..db928abab8 100644
--- a/libs/ardour/ardour/playlist.h
+++ b/libs/ardour/ardour/playlist.h
@@ -251,11 +251,11 @@ class Playlist : public SessionObject,
void splice_locked (nframes_t at, nframes64_t distance, boost::shared_ptr<Region> exclude);
void splice_unlocked (nframes_t at, nframes64_t distance, boost::shared_ptr<Region> exclude);
- virtual void finalize_split_region (boost::shared_ptr<Region> original, boost::shared_ptr<Region> left, boost::shared_ptr<Region> right) {}
+ virtual void finalize_split_region (boost::shared_ptr<Region> /*original*/, boost::shared_ptr<Region> /*left*/, boost::shared_ptr<Region> /*right*/) {}
- virtual void check_dependents (boost::shared_ptr<Region> region, bool norefresh) {}
- virtual void refresh_dependents (boost::shared_ptr<Region> region) {}
- virtual void remove_dependents (boost::shared_ptr<Region> region) {}
+ virtual void check_dependents (boost::shared_ptr<Region> /*region*/, bool /*norefresh*/) {}
+ virtual void refresh_dependents (boost::shared_ptr<Region> /*region*/) {}
+ virtual void remove_dependents (boost::shared_ptr<Region> /*region*/) {}
virtual XMLNode& state (bool);
diff --git a/libs/ardour/ardour/plugin.h b/libs/ardour/ardour/plugin.h
index f6de29ba41..a1fe25d31d 100644
--- a/libs/ardour/ardour/plugin.h
+++ b/libs/ardour/ardour/plugin.h
@@ -167,12 +167,12 @@ class Plugin : public PBD::StatefulDestructible, public Latent
virtual bool reconfigurable_io() const { return false; }
/* this is only called if reconfigurable_io() returns true */
- virtual bool configure_io (ChanCount in, ChanCount out) { return true; }
+ virtual bool configure_io (ChanCount /*in*/, ChanCount /*out*/) { return true; }
/* specific types of plugins can overload this. As of September 2008, only
AUPlugin does this.
*/
- virtual bool can_support_io_configuration (const ChanCount& in, ChanCount& out) const { return false; }
+ virtual bool can_support_io_configuration (const ChanCount& /*in*/, ChanCount& /*out*/) const { return false; }
virtual ChanCount output_streams() const;
virtual ChanCount input_streams() const;
diff --git a/libs/ardour/ardour/port.h b/libs/ardour/ardour/port.h
index 3f86fb8fd2..5ac7cb90ca 100644
--- a/libs/ardour/ardour/port.h
+++ b/libs/ardour/ardour/port.h
@@ -110,7 +110,9 @@ public:
virtual void cycle_end (nframes_t) = 0;
virtual void cycle_split () = 0;
virtual Buffer& get_buffer (nframes_t nframes, nframes_t offset = 0) = 0;
- virtual void flush_buffers (nframes_t, nframes_t offset = 0) {}
+ virtual void flush_buffers (nframes_t, nframes_t offset = 0) {
+ (void) offset;
+ }
static void set_engine (AudioEngine *);
diff --git a/libs/ardour/ardour/processor.h b/libs/ardour/ardour/processor.h
index a97dcc4cf7..90a4ab96b4 100644
--- a/libs/ardour/ardour/processor.h
+++ b/libs/ardour/ardour/processor.h
@@ -66,12 +66,12 @@ class Processor : public SessionObject, public AutomatableControls, public Laten
virtual nframes_t signal_latency() const { return 0; }
- virtual void transport_stopped (sframes_t frame) {}
+ virtual void transport_stopped (sframes_t /*frame*/) {}
- virtual void set_block_size (nframes_t nframes) {}
+ virtual void set_block_size (nframes_t /*nframes*/) {}
- virtual void run (BufferSet& bufs, sframes_t start_frame, sframes_t end_frame, nframes_t nframes) {}
- virtual void silence (nframes_t nframes) {}
+ virtual void run (BufferSet& /*bufs*/, sframes_t /*start_frame*/, sframes_t /*end_frame*/, nframes_t /*nframes*/) {}
+ virtual void silence (nframes_t /*nframes*/) {}
virtual void activate () { _pending_active = true; ActiveChanged(); }
virtual void deactivate () { _pending_active = false; ActiveChanged(); }
diff --git a/libs/ardour/ardour/region.h b/libs/ardour/ardour/region.h
index d2cc252d61..6a51ae75f5 100644
--- a/libs/ardour/ardour/region.h
+++ b/libs/ardour/ardour/region.h
@@ -250,11 +250,12 @@ class Region
void set_last_layer_op (uint64_t when);
virtual bool is_dependent() const { return false; }
- virtual bool depends_on (boost::shared_ptr<Region> other) const { return false; }
+ virtual bool depends_on (boost::shared_ptr<Region> /*other*/) const { return false; }
virtual int exportme (ARDOUR::Session&, ARDOUR::ExportSpecification&) = 0;
- virtual int get_transients (AnalysisFeatureList&, bool force_new = false) {
+ virtual int get_transients (AnalysisFeatureList&, bool force_new = false) {
+ (void) force_new;
// no transients, but its OK
return 0;
}
diff --git a/libs/ardour/ardour/route.h b/libs/ardour/ardour/route.h
index 8433038aed..9195a50060 100644
--- a/libs/ardour/ardour/route.h
+++ b/libs/ardour/ardour/route.h
@@ -109,7 +109,7 @@ class Route : public SessionObject, public AutomatableControls
virtual void toggle_monitor_input ();
virtual bool can_record() { return false; }
- virtual void set_record_enable (bool yn, void *src) {}
+ virtual void set_record_enable (bool /*yn*/, void * /*src*/) {}
virtual bool record_enabled() const { return false; }
virtual void handle_transport_stopped (bool abort, bool did_locate, bool flush_processors);
virtual void set_pending_declick (int);
diff --git a/libs/ardour/ardour/route_group_specialized.h b/libs/ardour/ardour/route_group_specialized.h
index b3e50b0869..adf4dfc429 100644
--- a/libs/ardour/ardour/route_group_specialized.h
+++ b/libs/ardour/ardour/route_group_specialized.h
@@ -26,7 +26,7 @@
namespace ARDOUR {
template<class T> void
-RouteGroup::apply (void (Track::*func)(T, void *), T val, void *src)
+RouteGroup::apply (void (Track::*func)(T, void *), T val, void */*src*/)
{
for (std::list<Route *>::iterator i = routes.begin(); i != routes.end(); i++) {
Track *at;
diff --git a/libs/ardour/ardour/session.h b/libs/ardour/ardour/session.h
index 8f70b4723e..5a0e033353 100644
--- a/libs/ardour/ardour/session.h
+++ b/libs/ardour/ardour/session.h
@@ -206,11 +206,11 @@ class Session : public PBD::StatefulDestructible, public boost::noncopyable
return e1->before (*e2);
}
- void *operator new (size_t ignored) {
+ void *operator new (size_t) {
return pool.alloc ();
}
- void operator delete(void *ptr, size_t size) {
+ void operator delete (void *ptr, size_t /*size*/) {
pool.release (ptr);
}
@@ -1039,7 +1039,7 @@ class Session : public PBD::StatefulDestructible, public boost::noncopyable
uint32_t _listen_cnt;
void set_worst_io_latencies ();
- void set_worst_io_latencies_x (IOChange asifwecare, void *ignored) {
+ void set_worst_io_latencies_x (IOChange, void *) {
set_worst_io_latencies ();
}
@@ -1630,11 +1630,11 @@ class Session : public PBD::StatefulDestructible, public boost::noncopyable
Click (nframes_t s, nframes_t d, const Sample *b)
: start (s), duration (d), data (b) { offset = 0; }
- void *operator new(size_t ignored) {
+ void *operator new (size_t) {
return pool.alloc ();
};
- void operator delete(void *ptr, size_t size) {
+ void operator delete(void *ptr, size_t /*size*/) {
pool.release (ptr);
}
diff --git a/libs/ardour/ardour/silentfilesource.h b/libs/ardour/ardour/silentfilesource.h
index c76af3fbcf..dcf7964ac6 100644
--- a/libs/ardour/ardour/silentfilesource.h
+++ b/libs/ardour/ardour/silentfilesource.h
@@ -27,7 +27,7 @@ namespace ARDOUR {
class SilentFileSource : public AudioFileSource {
public:
- int update_header (sframes_t when, struct tm&, time_t) { return 0; }
+ int update_header (sframes_t /*when*/, struct tm&, time_t) { return 0; }
int flush_header () { return 0; }
float sample_rate () const { return _sample_rate; }
@@ -47,17 +47,17 @@ protected:
_length = len;
}
- nframes_t read_unlocked (Sample *dst, sframes_t start, nframes_t cnt) const {
+ nframes_t read_unlocked (Sample *dst, sframes_t /*start*/, nframes_t cnt) const {
memset (dst, 0, sizeof (Sample) * cnt);
return cnt;
}
- nframes_t write_unlocked (Sample *dst, nframes_t cnt) { return 0; }
+ nframes_t write_unlocked (Sample */*dst*/, nframes_t /*cnt*/) { return 0; }
void set_header_timeline_position () {}
- int read_peaks_with_fpp (PeakData *peaks, nframes_t npeaks, sframes_t start, nframes_t cnt,
- double samples_per_unit, nframes_t fpp) const {
+ int read_peaks_with_fpp (PeakData *peaks, nframes_t npeaks, sframes_t /*start*/, nframes_t /*cnt*/,
+ double /*samples_per_unit*/, nframes_t /*fpp*/) const {
memset (peaks, 0, sizeof (PeakData) * npeaks);
return 0;
}
diff --git a/libs/ardour/ardour/slave.h b/libs/ardour/ardour/slave.h
index 283aaf5042..5987151307 100644
--- a/libs/ardour/ardour/slave.h
+++ b/libs/ardour/ardour/slave.h
@@ -165,8 +165,10 @@ class ISlaveSessionProxy {
virtual nframes_t frames_since_cycle_start () const { return 0; }
virtual nframes_t frame_time () const { return 0; }
- virtual void request_locate (nframes_t frame, bool with_roll = false) {}
- virtual void request_transport_speed (double speed) {}
+ virtual void request_locate (nframes_t /*frame*/, bool with_roll = false) {
+ (void) with_roll;
+ }
+ virtual void request_transport_speed (double /*speed*/) {}
};
diff --git a/libs/ardour/ardour/source.h b/libs/ardour/ardour/source.h
index 162f4400a4..968a92a804 100644
--- a/libs/ardour/ardour/source.h
+++ b/libs/ardour/ardour/source.h
@@ -80,7 +80,7 @@ class Source : public SessionObject, public boost::noncopyable
bool destructive() const { return (_flags & Destructive); }
bool writable () const { return _flags & Writable; }
- virtual bool set_destructive (bool yn) { return false; }
+ virtual bool set_destructive (bool /*yn*/) { return false; }
virtual bool length_mutable() const { return false; }
void use () { _in_use++; }
diff --git a/libs/ardour/ardour/track.h b/libs/ardour/ardour/track.h
index aca7c6f968..c2f69f0b9b 100644
--- a/libs/ardour/ardour/track.h
+++ b/libs/ardour/ardour/track.h
@@ -41,8 +41,8 @@ class Track : public Route
bool set_name (const std::string& str);
TrackMode mode () const { return _mode; }
- virtual int set_mode (TrackMode m) { return false; }
- virtual bool can_use_mode (TrackMode m, bool& bounce_required) { return false; }
+ virtual int set_mode (TrackMode /*m*/) { return false; }
+ virtual bool can_use_mode (TrackMode /*m*/, bool& /*bounce_required*/) { return false; }
sigc::signal<void> TrackModeChanged;
int no_roll (nframes_t nframes, sframes_t start_frame, sframes_t end_frame,
diff --git a/libs/ardour/audio_diskstream.cc b/libs/ardour/audio_diskstream.cc
index d67e48fed4..5c00f10f48 100644
--- a/libs/ardour/audio_diskstream.cc
+++ b/libs/ardour/audio_diskstream.cc
@@ -388,7 +388,7 @@ AudioDiskstream::use_destructive_playlist ()
}
void
-AudioDiskstream::check_record_status (nframes_t transport_frame, nframes_t nframes, bool can_record)
+AudioDiskstream::check_record_status (nframes_t transport_frame, nframes_t /*nframes*/, bool can_record)
{
int possibly_recording;
int rolling;
@@ -832,7 +832,7 @@ AudioDiskstream::process_varispeed_playback(nframes_t nframes, boost::shared_ptr
}
bool
-AudioDiskstream::commit (nframes_t nframes)
+AudioDiskstream::commit (nframes_t /*nframes*/)
{
bool need_butler = false;
@@ -1030,7 +1030,7 @@ AudioDiskstream::internal_playback_seek (nframes_t distance)
int
AudioDiskstream::read (Sample* buf, Sample* mixdown_buffer, float* gain_buffer, nframes_t& start, nframes_t cnt,
- ChannelInfo* channel_info, int channel, bool reversed)
+ ChannelInfo* /*channel_info*/, int channel, bool reversed)
{
nframes_t this_read = 0;
bool reloop = false;
@@ -1364,7 +1364,7 @@ AudioDiskstream::_do_refill (Sample* mixdown_buffer, float* gain_buffer)
* written at all unless @a force_flush is true.
*/
int
-AudioDiskstream::do_flush (RunContext context, bool force_flush)
+AudioDiskstream::do_flush (RunContext /*context*/, bool force_flush)
{
uint32_t to_write;
int32_t ret = 0;
@@ -1724,7 +1724,7 @@ AudioDiskstream::transport_looped (nframes_t transport_frame)
}
void
-AudioDiskstream::finish_capture (bool rec_monitors_input, boost::shared_ptr<ChannelList> c)
+AudioDiskstream::finish_capture (bool /*rec_monitors_input*/, boost::shared_ptr<ChannelList> c)
{
was_recording = false;
@@ -2059,7 +2059,7 @@ AudioDiskstream::use_new_write_source (uint32_t n)
}
void
-AudioDiskstream::reset_write_sources (bool mark_write_complete, bool force)
+AudioDiskstream::reset_write_sources (bool mark_write_complete, bool /*force*/)
{
ChannelList::iterator chan;
boost::shared_ptr<ChannelList> c = channels.reader();
@@ -2120,7 +2120,7 @@ AudioDiskstream::rename_write_sources ()
}
void
-AudioDiskstream::set_block_size (nframes_t nframes)
+AudioDiskstream::set_block_size (nframes_t /*nframes*/)
{
if (_session.get_block_size() > speed_buffer_size) {
speed_buffer_size = _session.get_block_size();
diff --git a/libs/ardour/audio_playlist.cc b/libs/ardour/audio_playlist.cc
index 7f89091fdd..93bdc333f1 100644
--- a/libs/ardour/audio_playlist.cc
+++ b/libs/ardour/audio_playlist.cc
@@ -729,7 +729,7 @@ AudioPlaylist::destroy_region (boost::shared_ptr<Region> region)
}
void
-AudioPlaylist::crossfade_changed (Change ignored)
+AudioPlaylist::crossfade_changed (Change)
{
if (in_flush || in_set_state) {
return;
diff --git a/libs/ardour/audio_track.cc b/libs/ardour/audio_track.cc
index aa327e1eba..3c8fe8c42c 100644
--- a/libs/ardour/audio_track.cc
+++ b/libs/ardour/audio_track.cc
@@ -173,7 +173,7 @@ AudioTrack::deprecated_use_diskstream_connections ()
}
int
-AudioTrack::set_diskstream (boost::shared_ptr<AudioDiskstream> ds, void *src)
+AudioTrack::set_diskstream (boost::shared_ptr<AudioDiskstream> ds, void * /*src*/)
{
_diskstream = ds;
_diskstream->set_route (*this);
diff --git a/libs/ardour/audioengine.cc b/libs/ardour/audioengine.cc
index 7533a1ed8f..d9a817cb7b 100644
--- a/libs/ardour/audioengine.cc
+++ b/libs/ardour/audioengine.cc
@@ -123,7 +123,7 @@ AudioEngine::jack() const
}
void
-_thread_init_callback (void *arg)
+_thread_init_callback (void * /*arg*/)
{
/* make sure that anybody who needs to know about this thread
knows about it.
@@ -217,7 +217,7 @@ AudioEngine::stop (bool forever)
bool
-AudioEngine::get_sync_offset (nframes_t& offset) const
+AudioEngine::get_sync_offset (nframes_t& /*offset*/) const
{
#ifdef HAVE_JACK_VIDEO_SUPPORT
diff --git a/libs/ardour/audiofilesource.cc b/libs/ardour/audiofilesource.cc
index f1a65edc63..705fbc4eab 100644
--- a/libs/ardour/audiofilesource.cc
+++ b/libs/ardour/audiofilesource.cc
@@ -103,7 +103,7 @@ AudioFileSource::AudioFileSource (Session& s, const ustring& path, bool embedded
/** Constructor used for new internal-to-session files. */
AudioFileSource::AudioFileSource (Session& s, const ustring& path, bool embedded, Source::Flag flags,
- SampleFormat samp_format, HeaderFormat hdr_format)
+ SampleFormat /*samp_format*/, HeaderFormat /*hdr_format*/)
: Source (s, DataType::AUDIO, path, flags)
, AudioSource (s, path)
, FileSource (s, DataType::AUDIO, path, embedded, flags)
@@ -307,7 +307,7 @@ AudioFileSource::set_header_position_offset (nframes_t offset)
}
bool
-AudioFileSource::is_empty (Session& s, ustring path)
+AudioFileSource::is_empty (Session& /*s*/, ustring path)
{
SoundFileInfo info;
string err;
diff --git a/libs/ardour/audioregion.cc b/libs/ardour/audioregion.cc
index 5743bae935..89c0c3a3cc 100644
--- a/libs/ardour/audioregion.cc
+++ b/libs/ardour/audioregion.cc
@@ -195,7 +195,7 @@ AudioRegion::AudioRegion (boost::shared_ptr<const AudioRegion> other)
assert (_sources.size() == _master_sources.size());
}
-AudioRegion::AudioRegion (boost::shared_ptr<const AudioRegion> other, const SourceList& srcs,
+AudioRegion::AudioRegion (boost::shared_ptr<const AudioRegion> other, const SourceList& /*srcs*/,
nframes_t length, const string& name, layer_t layer, Flag flags)
: Region (other, length, name, layer, flags)
, _automatable (other->session())
@@ -373,12 +373,12 @@ AudioRegion::master_read_at (Sample *buf, Sample *mixdown_buffer, float *gain_bu
}
nframes_t
-AudioRegion::_read_at (const SourceList& srcs, nframes_t limit,
+AudioRegion::_read_at (const SourceList& /*srcs*/, nframes_t limit,
Sample *buf, Sample *mixdown_buffer, float *gain_buffer,
sframes_t position, nframes_t cnt,
uint32_t chan_n,
- nframes_t read_frames,
- nframes_t skip_frames,
+ nframes_t /*read_frames*/,
+ nframes_t /*skip_frames*/,
ReadOps rops) const
{
nframes_t internal_offset;
@@ -1038,7 +1038,7 @@ AudioRegion::recompute_at_start ()
}
int
-AudioRegion::separate_by_channel (Session& session, vector<boost::shared_ptr<Region> >& v) const
+AudioRegion::separate_by_channel (Session& /*session*/, vector<boost::shared_ptr<Region> >& v) const
{
SourceList srcs;
string new_name;
@@ -1086,7 +1086,7 @@ AudioRegion::read_raw_internal (Sample* buf, sframes_t pos, nframes_t cnt, int c
}
int
-AudioRegion::exportme (Session& session, ARDOUR::ExportSpecification& spec)
+AudioRegion::exportme (Session& /*session*/, ARDOUR::ExportSpecification& /*spec*/)
{
// TODO EXPORT
// const nframes_t blocksize = 4096;
diff --git a/libs/ardour/audiosource.cc b/libs/ardour/audiosource.cc
index 17c20e05ee..f44628956a 100644
--- a/libs/ardour/audiosource.cc
+++ b/libs/ardour/audiosource.cc
@@ -128,7 +128,7 @@ AudioSource::set_state (const XMLNode& node)
}
sframes_t
-AudioSource::length (sframes_t pos) const
+AudioSource::length (sframes_t /*pos*/) const
{
return _length;
}
@@ -264,7 +264,7 @@ AudioSource::initialize_peakfile (bool newfile, ustring audio_path)
}
nframes_t
-AudioSource::read (Sample *dst, sframes_t start, nframes_t cnt, int channel) const
+AudioSource::read (Sample *dst, sframes_t start, nframes_t cnt, int /*channel*/) const
{
Glib::Mutex::Lock lm (_lock);
return read_unlocked (dst, start, cnt);
diff --git a/libs/ardour/auditioner.cc b/libs/ardour/auditioner.cc
index 35a1b70137..4d99e2f5e0 100644
--- a/libs/ardour/auditioner.cc
+++ b/libs/ardour/auditioner.cc
@@ -200,7 +200,7 @@ Auditioner::play_audition (nframes_t nframes)
}
void
-Auditioner::output_changed (IOChange change, void* src)
+Auditioner::output_changed (IOChange change, void* /*src*/)
{
string phys;
diff --git a/libs/ardour/crossfade.cc b/libs/ardour/crossfade.cc
index 006d32508e..2f0d66f8fb 100644
--- a/libs/ardour/crossfade.cc
+++ b/libs/ardour/crossfade.cc
@@ -270,7 +270,7 @@ Crossfade::initialize ()
}
nframes_t
-Crossfade::read_raw_internal (Sample* buf, sframes_t start, nframes_t cnt, int channel) const
+Crossfade::read_raw_internal (Sample* /*buf*/, sframes_t /*start*/, nframes_t cnt, int /*channel*/) const
{
// FIXME: Why is this disabled?
#if 0
diff --git a/libs/ardour/delivery.cc b/libs/ardour/delivery.cc
index aff082f096..5a7365df96 100644
--- a/libs/ardour/delivery.cc
+++ b/libs/ardour/delivery.cc
@@ -163,7 +163,7 @@ Delivery::display_name () const
}
void
-Delivery::cycle_start (nframes_t nframes)
+Delivery::cycle_start (nframes_t /*nframes*/)
{
_output_offset = 0;
_no_outs_cuz_we_no_monitor = false;
@@ -578,7 +578,7 @@ Delivery::set_name (const std::string& name)
}
void
-Delivery::output_changed (IOChange change, void* src)
+Delivery::output_changed (IOChange change, void* /*src*/)
{
if (change & ARDOUR::ConfigurationChanged) {
reset_panner ();
diff --git a/libs/ardour/diskstream.cc b/libs/ardour/diskstream.cc
index b9638674eb..6b9ecc53fe 100644
--- a/libs/ardour/diskstream.cc
+++ b/libs/ardour/diskstream.cc
@@ -77,7 +77,7 @@ Diskstream::Diskstream (Session &sess, const string &name, Flag flag)
init (flag);
}
-Diskstream::Diskstream (Session& sess, const XMLNode& node)
+Diskstream::Diskstream (Session& sess, const XMLNode& /*node*/)
: SessionObject(sess, "unnamed diskstream")
{
init (Recordable);
@@ -145,7 +145,7 @@ Diskstream::set_route (Route& r)
}
void
-Diskstream::handle_input_change (IOChange change, void *src)
+Diskstream::handle_input_change (IOChange change, void * /*src*/)
{
Glib::Mutex::Lock lm (state_lock);
@@ -356,7 +356,7 @@ Diskstream::use_playlist (boost::shared_ptr<Playlist> playlist)
}
void
-Diskstream::playlist_changed (Change ignored)
+Diskstream::playlist_changed (Change)
{
playlist_modified ();
}
diff --git a/libs/ardour/export_format_manager.cc b/libs/ardour/export_format_manager.cc
index 924b294583..8b4b9e550f 100644
--- a/libs/ardour/export_format_manager.cc
+++ b/libs/ardour/export_format_manager.cc
@@ -404,7 +404,7 @@ ExportFormatManager::change_dither_type_selection (bool select, WeakDitherTypePt
}
void
-ExportFormatManager::select_compatibility (WeakCompatPtr const & compat)
+ExportFormatManager::select_compatibility (WeakCompatPtr const & /*compat*/)
{
/* Calculate compatibility intersection for the selection */
diff --git a/libs/ardour/file_source.cc b/libs/ardour/file_source.cc
index 027701be09..dc582a36ee 100644
--- a/libs/ardour/file_source.cc
+++ b/libs/ardour/file_source.cc
@@ -65,7 +65,7 @@ FileSource::FileSource (Session& session, DataType type,
{
}
-FileSource::FileSource (Session& session, const XMLNode& node, bool must_exist)
+FileSource::FileSource (Session& session, const XMLNode& node, bool /*must_exist*/)
: Source(session, node)
, _file_is_new(false)
{
diff --git a/libs/ardour/gain.cc b/libs/ardour/gain.cc
index 62b96d345e..cf38050063 100644
--- a/libs/ardour/gain.cc
+++ b/libs/ardour/gain.cc
@@ -41,21 +41,21 @@ Gain::operator= (const Gain& other)
}
void
-Gain::fill_linear_volume_fade_in (Gain& gain, nframes_t frames)
+Gain::fill_linear_volume_fade_in (Gain& /*gain*/, nframes_t /*frames*/)
{
}
void
-Gain::fill_linear_volume_fade_out (Gain& gain, nframes_t frames)
+Gain::fill_linear_volume_fade_out (Gain& /*gain*/, nframes_t /*frames*/)
{
}
void
-Gain::fill_linear_fade_in (Gain& gain, nframes_t frames)
+Gain::fill_linear_fade_in (Gain& /*gain*/, nframes_t /*frames*/)
{
}
void
-Gain::fill_linear_fade_out (Gain& gain, nframes_t frames)
+Gain::fill_linear_fade_out (Gain& /*gain*/, nframes_t /*frames*/)
{
}
diff --git a/libs/ardour/import.cc b/libs/ardour/import.cc
index 12a7db3659..53da346d91 100644
--- a/libs/ardour/import.cc
+++ b/libs/ardour/import.cc
@@ -191,8 +191,8 @@ get_paths_for_new_sources (const bool allow_replacing, const string& import_file
}
static bool
-map_existing_mono_sources (const vector<string>& new_paths, Session& sess,
- uint samplerate, vector<boost::shared_ptr<Source> >& newfiles, Session *session)
+map_existing_mono_sources (const vector<string>& new_paths, Session& /*sess*/,
+ uint /*samplerate*/, vector<boost::shared_ptr<Source> >& newfiles, Session *session)
{
for (vector<string>::const_iterator i = new_paths.begin();
i != new_paths.end(); ++i)
diff --git a/libs/ardour/internal_return.cc b/libs/ardour/internal_return.cc
index f6c99d8518..807582c379 100644
--- a/libs/ardour/internal_return.cc
+++ b/libs/ardour/internal_return.cc
@@ -44,7 +44,7 @@ InternalReturn::InternalReturn (Session& s, const XMLNode& node)
}
void
-InternalReturn::run (BufferSet& bufs, sframes_t start_frame, sframes_t end_frame, nframes_t nframes)
+InternalReturn::run (BufferSet& bufs, sframes_t /*start_frame*/, sframes_t /*end_frame*/, nframes_t nframes)
{
if (!_active && !_pending_active) {
return;
diff --git a/libs/ardour/interpolation.cc b/libs/ardour/interpolation.cc
index fbe0251471..a5cdf1ce8b 100644
--- a/libs/ardour/interpolation.cc
+++ b/libs/ardour/interpolation.cc
@@ -49,7 +49,7 @@ FixedPointLinearInterpolation::interpolate (int channel, nframes_t nframes, Samp
}
void
-FixedPointLinearInterpolation::add_channel_to (int input_buffer_size, int output_buffer_size)
+FixedPointLinearInterpolation::add_channel_to (int /*input_buffer_size*/, int /*output_buffer_size*/)
{
last_phase.push_back (0);
}
@@ -117,7 +117,7 @@ LinearInterpolation::interpolate (int channel, nframes_t nframes, Sample *input,
}
void
-LinearInterpolation::add_channel_to (int input_buffer_size, int output_buffer_size)
+LinearInterpolation::add_channel_to (int /*input_buffer_size*/, int /*output_buffer_size*/)
{
phase.push_back (0.0);
}
diff --git a/libs/ardour/io.cc b/libs/ardour/io.cc
index 4fb3f915c4..0d7446e852 100644
--- a/libs/ardour/io.cc
+++ b/libs/ardour/io.cc
@@ -354,7 +354,7 @@ IO::disconnect (void* src)
}
bool
-IO::ensure_ports_locked (ChanCount count, bool clear, void* src)
+IO::ensure_ports_locked (ChanCount count, bool clear, void* /*src*/)
{
Port* port = 0;
bool changed = false;
@@ -460,7 +460,7 @@ IO::get_state (void)
}
XMLNode&
-IO::state (bool full_state)
+IO::state (bool /*full_state*/)
{
XMLNode* node = new XMLNode (state_node_name);
char buf[64];
@@ -1039,7 +1039,7 @@ IO::enable_connecting ()
}
void
-IO::bundle_changed (Bundle::Change c)
+IO::bundle_changed (Bundle::Change /*c*/)
{
//XXX
// connect_input_ports_to_bundle (_input_bundle, this);
diff --git a/libs/ardour/io_processor.cc b/libs/ardour/io_processor.cc
index ebffd31028..708820cdca 100644
--- a/libs/ardour/io_processor.cc
+++ b/libs/ardour/io_processor.cc
@@ -69,7 +69,7 @@ IOProcessor::IOProcessor (Session& s, bool with_input, bool with_output,
/* create an IOProcessor that proxies to an existing IO object */
IOProcessor::IOProcessor (Session& s, boost::shared_ptr<IO> in, boost::shared_ptr<IO> out,
- const string& proc_name, DataType dtype)
+ const string& proc_name, DataType /*dtype*/)
: Processor(s, proc_name)
, _input (in)
, _output (out)
diff --git a/libs/ardour/location.cc b/libs/ardour/location.cc
index 43ffefaae1..b66d0f3942 100644
--- a/libs/ardour/location.cc
+++ b/libs/ardour/location.cc
@@ -654,7 +654,7 @@ Locations::remove (Location *loc)
}
void
-Locations::location_changed (Location* loc)
+Locations::location_changed (Location* /*loc*/)
{
changed (); /* EMIT SIGNAL */
}
diff --git a/libs/ardour/lv2_event_buffer.cc b/libs/ardour/lv2_event_buffer.cc
index 6afd395a56..88ecfe1433 100644
--- a/libs/ardour/lv2_event_buffer.cc
+++ b/libs/ardour/lv2_event_buffer.cc
@@ -165,7 +165,7 @@ LV2EventBuffer::append(uint32_t frames,
* \return true on success
*/
bool
-LV2EventBuffer::append(const LV2_Event_Buffer* buf)
+LV2EventBuffer::append(const LV2_Event_Buffer* /*buf*/)
{
uint8_t** data = NULL;
bool ret = true;
diff --git a/libs/ardour/lv2_plugin.cc b/libs/ardour/lv2_plugin.cc
index 8000bd8e44..32c6fd2929 100644
--- a/libs/ardour/lv2_plugin.cc
+++ b/libs/ardour/lv2_plugin.cc
@@ -325,7 +325,7 @@ LV2Plugin::load_preset(const string uri)
}
bool
-LV2Plugin::save_preset (string name)
+LV2Plugin::save_preset (string /*name*/)
{
return false;
}
diff --git a/libs/ardour/meter.cc b/libs/ardour/meter.cc
index e8512aa593..c8546c8ffa 100644
--- a/libs/ardour/meter.cc
+++ b/libs/ardour/meter.cc
@@ -71,7 +71,7 @@ Metering::update_meters()
* be set to 0.
*/
void
-PeakMeter::run (BufferSet& bufs, sframes_t start_frame, sframes_t end_frame, nframes_t nframes)
+PeakMeter::run (BufferSet& bufs, sframes_t /*start_frame*/, sframes_t /*end_frame*/, nframes_t nframes)
{
if (!_active && !_pending_active) {
return;
diff --git a/libs/ardour/midi_buffer.cc b/libs/ardour/midi_buffer.cc
index 887545c662..ae3071a53c 100644
--- a/libs/ardour/midi_buffer.cc
+++ b/libs/ardour/midi_buffer.cc
@@ -100,7 +100,7 @@ MidiBuffer::read_from (const Buffer& src, nframes_t nframes, nframes_t dst_offse
}
void
-MidiBuffer::merge_from (const Buffer& src, nframes_t nframes, nframes_t dst_offset, nframes_t src_offset)
+MidiBuffer::merge_from (const Buffer& src, nframes_t /*nframes*/, nframes_t /*dst_offset*/, nframes_t /*src_offset*/)
{
const MidiBuffer* mbuf = dynamic_cast<const MidiBuffer*>(&src);
assert (mbuf);
@@ -233,7 +233,7 @@ MidiBuffer::reserve(TimeType time, size_t size)
void
-MidiBuffer::silence (nframes_t nframes, nframes_t offset)
+MidiBuffer::silence (nframes_t /*nframes*/, nframes_t /*offset*/)
{
/* XXX iterate over existing events, find all in range given by offset & nframes,
and delete them.
diff --git a/libs/ardour/midi_clock_slave.cc b/libs/ardour/midi_clock_slave.cc
index 0b0c85b01b..1182fed23d 100644
--- a/libs/ardour/midi_clock_slave.cc
+++ b/libs/ardour/midi_clock_slave.cc
@@ -124,7 +124,7 @@ MIDIClock_Slave::calculate_filter_coefficients()
}
void
-MIDIClock_Slave::update_midi_clock (Parser& parser, nframes_t timestamp)
+MIDIClock_Slave::update_midi_clock (Parser& /*parser*/, nframes_t timestamp)
{
// some pieces of hardware send MIDI Clock all the time
if ( (!_starting) && (!_started) ) {
@@ -195,7 +195,7 @@ MIDIClock_Slave::update_midi_clock (Parser& parser, nframes_t timestamp)
}
void
-MIDIClock_Slave::start (Parser& parser, nframes_t timestamp)
+MIDIClock_Slave::start (Parser& /*parser*/, nframes_t /*timestamp*/)
{
#ifdef DEBUG_MIDI_CLOCK
cerr << "MIDIClock_Slave got start message at time " << timestamp << " engine time: " << session->frame_time() << endl;
@@ -223,7 +223,7 @@ MIDIClock_Slave::reset ()
}
void
-MIDIClock_Slave::contineu (Parser& parser, nframes_t timestamp)
+MIDIClock_Slave::contineu (Parser& /*parser*/, nframes_t /*timestamp*/)
{
#ifdef DEBUG_MIDI_CLOCK
std::cerr << "MIDIClock_Slave got continue message" << endl;
@@ -236,7 +236,7 @@ MIDIClock_Slave::contineu (Parser& parser, nframes_t timestamp)
void
-MIDIClock_Slave::stop (Parser& parser, nframes_t timestamp)
+MIDIClock_Slave::stop (Parser& /*parser*/, nframes_t /*timestamp*/)
{
#ifdef DEBUG_MIDI_CLOCK
std::cerr << "MIDIClock_Slave got stop message" << endl;
@@ -268,7 +268,7 @@ MIDIClock_Slave::stop (Parser& parser, nframes_t timestamp)
}
void
-MIDIClock_Slave::position (Parser& parser, byte* message, size_t size)
+MIDIClock_Slave::position (Parser& /*parser*/, byte* message, size_t size)
{
// we are note supposed to get position messages while we are running
// so lets be robust and ignore those
diff --git a/libs/ardour/midi_diskstream.cc b/libs/ardour/midi_diskstream.cc
index aa6d77b000..29b6ab4a4d 100644
--- a/libs/ardour/midi_diskstream.cc
+++ b/libs/ardour/midi_diskstream.cc
@@ -314,7 +314,7 @@ MidiDiskstream::set_note_mode (NoteMode m)
}
void
-MidiDiskstream::check_record_status (nframes_t transport_frame, nframes_t nframes, bool can_record)
+MidiDiskstream::check_record_status (nframes_t transport_frame, nframes_t /*nframes*/, bool can_record)
{
// FIXME: waaay too much code to duplicate (AudioDiskstream)
@@ -1029,7 +1029,7 @@ MidiDiskstream::do_refill ()
* written at all unless @a force_flush is true.
*/
int
-MidiDiskstream::do_flush (RunContext context, bool force_flush)
+MidiDiskstream::do_flush (RunContext /*context*/, bool force_flush)
{
uint32_t to_write;
int32_t ret = 0;
@@ -1084,7 +1084,7 @@ out:
}
void
-MidiDiskstream::transport_stopped (struct tm& when, time_t twhen, bool abort_capture)
+MidiDiskstream::transport_stopped (struct tm& /*when*/, time_t /*twhen*/, bool abort_capture)
{
uint32_t buffer_position;
bool more_work = true;
@@ -1257,7 +1257,7 @@ MidiDiskstream::transport_looped (nframes_t transport_frame)
}
void
-MidiDiskstream::finish_capture (bool rec_monitors_input)
+MidiDiskstream::finish_capture (bool /*rec_monitors_input*/)
{
was_recording = false;
@@ -1547,7 +1547,7 @@ MidiDiskstream::use_new_write_source (uint32_t n)
}
void
-MidiDiskstream::reset_write_sources (bool mark_write_complete, bool force)
+MidiDiskstream::reset_write_sources (bool mark_write_complete, bool /*force*/)
{
if (!recordable()) {
return;
@@ -1575,7 +1575,7 @@ MidiDiskstream::rename_write_sources ()
}
void
-MidiDiskstream::set_block_size (nframes_t nframes)
+MidiDiskstream::set_block_size (nframes_t /*nframes*/)
{
}
@@ -1629,7 +1629,7 @@ MidiDiskstream::capture_buffer_load () const
}
int
-MidiDiskstream::use_pending_capture_data (XMLNode& node)
+MidiDiskstream::use_pending_capture_data (XMLNode& /*node*/)
{
return 0;
}
diff --git a/libs/ardour/midi_playlist.cc b/libs/ardour/midi_playlist.cc
index 20ee0c2770..8f8b882d1e 100644
--- a/libs/ardour/midi_playlist.cc
+++ b/libs/ardour/midi_playlist.cc
@@ -161,26 +161,26 @@ MidiPlaylist::read (MidiRingBuffer<nframes_t>& dst, nframes_t start, nframes_t d
void
-MidiPlaylist::remove_dependents (boost::shared_ptr<Region> region)
+MidiPlaylist::remove_dependents (boost::shared_ptr<Region> /*region*/)
{
/* MIDI regions have no dependents (crossfades) */
}
void
-MidiPlaylist::refresh_dependents (boost::shared_ptr<Region> r)
+MidiPlaylist::refresh_dependents (boost::shared_ptr<Region> /*r*/)
{
/* MIDI regions have no dependents (crossfades) */
}
void
-MidiPlaylist::finalize_split_region (boost::shared_ptr<Region> original, boost::shared_ptr<Region> left, boost::shared_ptr<Region> right)
+MidiPlaylist::finalize_split_region (boost::shared_ptr<Region> /*original*/, boost::shared_ptr<Region> /*left*/, boost::shared_ptr<Region> /*right*/)
{
/* No MIDI crossfading (yet?), so nothing to do here */
}
void
-MidiPlaylist::check_dependents (boost::shared_ptr<Region> r, bool norefresh)
+MidiPlaylist::check_dependents (boost::shared_ptr<Region> /*r*/, bool /*norefresh*/)
{
/* MIDI regions have no dependents (crossfades) */
}
diff --git a/libs/ardour/midi_port.cc b/libs/ardour/midi_port.cc
index 30084c6718..b07eb84f1b 100644
--- a/libs/ardour/midi_port.cc
+++ b/libs/ardour/midi_port.cc
@@ -96,7 +96,7 @@ MidiPort::get_midi_buffer (nframes_t nframes, nframes_t offset)
void
-MidiPort::cycle_end (nframes_t nframes)
+MidiPort::cycle_end (nframes_t /*nframes*/)
{
_has_been_mixed_down = false;
}
diff --git a/libs/ardour/midi_region.cc b/libs/ardour/midi_region.cc
index 29357322ea..910789c7fb 100644
--- a/libs/ardour/midi_region.cc
+++ b/libs/ardour/midi_region.cc
@@ -142,7 +142,7 @@ MidiRegion::master_read_at (MidiRingBuffer<nframes_t>& out, sframes_t position,
}
nframes_t
-MidiRegion::_read_at (const SourceList& srcs, MidiRingBuffer<nframes_t>& dst, nframes_t position, nframes_t dur, uint32_t chan_n, NoteMode mode) const
+MidiRegion::_read_at (const SourceList& /*srcs*/, MidiRingBuffer<nframes_t>& dst, nframes_t position, nframes_t dur, uint32_t chan_n, NoteMode mode) const
{
nframes_t internal_offset = 0;
nframes_t src_offset = 0;
diff --git a/libs/ardour/midi_source.cc b/libs/ardour/midi_source.cc
index 59c19981a5..f16ebf186f 100644
--- a/libs/ardour/midi_source.cc
+++ b/libs/ardour/midi_source.cc
@@ -113,7 +113,7 @@ MidiSource::length (sframes_t pos) const
}
void
-MidiSource::update_length (sframes_t pos, sframes_t cnt)
+MidiSource::update_length (sframes_t /*pos*/, sframes_t /*cnt*/)
{
// You're not the boss of me!
}
diff --git a/libs/ardour/midi_track.cc b/libs/ardour/midi_track.cc
index fc106194a2..5a53cecc3c 100644
--- a/libs/ardour/midi_track.cc
+++ b/libs/ardour/midi_track.cc
@@ -448,7 +448,7 @@ MidiTrack::roll (nframes_t nframes, sframes_t start_frame, sframes_t end_frame,
}
void
-MidiTrack::write_controller_messages(MidiBuffer& output_buf, sframes_t start, sframes_t end, nframes_t nframes)
+MidiTrack::write_controller_messages(MidiBuffer& output_buf, sframes_t /*start*/, sframes_t /*end*/, nframes_t nframes)
{
// Append immediate events (UI controls)
@@ -458,7 +458,7 @@ MidiTrack::write_controller_messages(MidiBuffer& output_buf, sframes_t start, sf
}
int
-MidiTrack::export_stuff (BufferSet& bufs, nframes_t nframes, sframes_t end_frame)
+MidiTrack::export_stuff (BufferSet& /*bufs*/, nframes_t /*nframes*/, sframes_t /*end_frame*/)
{
return -1;
}
@@ -471,7 +471,7 @@ MidiTrack::set_latency_delay (nframes_t longest_session_latency)
}
boost::shared_ptr<Region>
-MidiTrack::bounce (InterThreadInfo& itt)
+MidiTrack::bounce (InterThreadInfo& /*itt*/)
{
throw;
// vector<MidiSource*> srcs;
@@ -481,7 +481,7 @@ MidiTrack::bounce (InterThreadInfo& itt)
boost::shared_ptr<Region>
-MidiTrack::bounce_range (nframes_t start, nframes_t end, InterThreadInfo& itt, bool enable_processing)
+MidiTrack::bounce_range (nframes_t /*start*/, nframes_t /*end*/, InterThreadInfo& /*itt*/, bool /*enable_processing*/)
{
throw;
//vector<MidiSource*> srcs;
@@ -490,7 +490,7 @@ MidiTrack::bounce_range (nframes_t start, nframes_t end, InterThreadInfo& itt, b
}
void
-MidiTrack::freeze (InterThreadInfo& itt)
+MidiTrack::freeze (InterThreadInfo& /*itt*/)
{
}
diff --git a/libs/ardour/mtc_slave.cc b/libs/ardour/mtc_slave.cc
index 91a8531b56..587d6007b3 100644
--- a/libs/ardour/mtc_slave.cc
+++ b/libs/ardour/mtc_slave.cc
@@ -69,7 +69,7 @@ MTC_Slave::rebind (MIDI::Port& p)
}
void
-MTC_Slave::update_mtc_qtr (Parser& p)
+MTC_Slave::update_mtc_qtr (Parser& /*p*/)
{
cycles_t cnow = get_cycles ();
nframes_t now = session.engine().frame_time();
diff --git a/libs/ardour/named_selection.cc b/libs/ardour/named_selection.cc
index eea726cdca..dbb4a8ca4d 100644
--- a/libs/ardour/named_selection.cc
+++ b/libs/ardour/named_selection.cc
@@ -106,7 +106,7 @@ NamedSelection::~NamedSelection ()
}
int
-NamedSelection::set_state (const XMLNode& node)
+NamedSelection::set_state (const XMLNode& /*node*/)
{
return 0;
}
diff --git a/libs/ardour/panner.cc b/libs/ardour/panner.cc
index be72f65593..f43741300a 100644
--- a/libs/ardour/panner.cc
+++ b/libs/ardour/panner.cc
@@ -465,7 +465,7 @@ EqualPowerStereoPanner::get_state (void)
}
XMLNode&
-EqualPowerStereoPanner::state (bool full_state)
+EqualPowerStereoPanner::state (bool /*full_state*/)
{
XMLNode* root = new XMLNode ("StreamPanner");
char buf[64];
@@ -623,9 +623,9 @@ Multi2dPanner::distribute (AudioBuffer& srcbuf, BufferSet& obufs, gain_t gain_co
}
void
-Multi2dPanner::distribute_automated (AudioBuffer& src, BufferSet& obufs,
- nframes_t start, nframes_t end, nframes_t nframes,
- pan_t** buffers)
+Multi2dPanner::distribute_automated (AudioBuffer& /*src*/, BufferSet& /*obufs*/,
+ nframes_t /*start*/, nframes_t /*end*/, nframes_t /*nframes*/,
+ pan_t** /*buffers*/)
{
if (_muted) {
return;
@@ -643,7 +643,7 @@ Multi2dPanner::factory (Panner& p, Evoral::Parameter param)
}
int
-Multi2dPanner::load (istream& in, string path, uint32_t& linecnt)
+Multi2dPanner::load (istream& /*in*/, string /*path*/, uint32_t& /*linecnt*/)
{
return 0;
}
@@ -655,7 +655,7 @@ Multi2dPanner::get_state (void)
}
XMLNode&
-Multi2dPanner::state (bool full_state)
+Multi2dPanner::state (bool /*full_state*/)
{
XMLNode* root = new XMLNode ("StreamPanner");
char buf[64];
diff --git a/libs/ardour/plugin_insert.cc b/libs/ardour/plugin_insert.cc
index 8f7eae5849..1c3b027e52 100644
--- a/libs/ardour/plugin_insert.cc
+++ b/libs/ardour/plugin_insert.cc
@@ -375,7 +375,7 @@ PluginInsert::silence (nframes_t nframes)
}
void
-PluginInsert::run (BufferSet& bufs, sframes_t start_frame, sframes_t end_frame, nframes_t nframes)
+PluginInsert::run (BufferSet& bufs, sframes_t /*start_frame*/, sframes_t /*end_frame*/, nframes_t nframes)
{
if (_active || _pending_active) {
@@ -633,7 +633,7 @@ PluginInsert::can_support_io_configuration (const ChanCount& in, ChanCount& out)
* (private helper)
*/
int32_t
-PluginInsert::count_for_configuration (ChanCount in, ChanCount out) const
+PluginInsert::count_for_configuration (ChanCount in, ChanCount /*out*/) const
{
if (_plugins.front()->reconfigurable_io()) {
/* plugin has flexible I/O, so the answer is always 1 */
diff --git a/libs/ardour/plugin_manager.cc b/libs/ardour/plugin_manager.cc
index 8728203794..44974a7199 100644
--- a/libs/ardour/plugin_manager.cc
+++ b/libs/ardour/plugin_manager.cc
@@ -213,7 +213,7 @@ PluginManager::add_ladspa_directory (string path)
return -1;
}
-static bool ladspa_filter (const string& str, void *arg)
+static bool ladspa_filter (const string& str, void */*arg*/)
{
/* Not a dotfile, has a prefix before a period, suffix is "so" */
@@ -221,7 +221,7 @@ static bool ladspa_filter (const string& str, void *arg)
}
int
-PluginManager::ladspa_discover_from_path (string path)
+PluginManager::ladspa_discover_from_path (string /*path*/)
{
PathScanner scanner;
vector<string *> *plugin_objects;
@@ -240,7 +240,7 @@ PluginManager::ladspa_discover_from_path (string path)
return ret;
}
-static bool rdf_filter (const string &str, void *arg)
+static bool rdf_filter (const string &str, void */*arg*/)
{
return str[0] != '.' &&
((str.find(".rdf") == (str.length() - 4)) ||
diff --git a/libs/ardour/region.cc b/libs/ardour/region.cc
index 1754e24b5e..1f90a0761b 100644
--- a/libs/ardour/region.cc
+++ b/libs/ardour/region.cc
@@ -347,7 +347,7 @@ Region::~Region ()
}
void
-Region::copy_stuff (boost::shared_ptr<const Region> other, nframes_t offset, nframes_t length, const string& name, layer_t layer, Flag flags)
+Region::copy_stuff (boost::shared_ptr<const Region> other, nframes_t /*offset*/, nframes_t length, const string& name, layer_t layer, Flag flags)
{
_frozen = 0;
_pending_changed = Change (0);
@@ -429,7 +429,7 @@ Region::set_name (const std::string& str)
}
void
-Region::set_length (nframes_t len, void *src)
+Region::set_length (nframes_t len, void */*src*/)
{
//cerr << "Region::set_length() len = " << len << endl;
if (_flags & Locked) {
@@ -567,7 +567,7 @@ Region::update_position_after_tempo_map_change ()
}
void
-Region::set_position (nframes_t pos, void *src)
+Region::set_position (nframes_t pos, void */*src*/)
{
if (!can_move()) {
return;
@@ -609,7 +609,7 @@ Region::set_position_internal (nframes_t pos, bool allow_bbt_recompute)
}
void
-Region::set_position_on_top (nframes_t pos, void *src)
+Region::set_position_on_top (nframes_t pos, void */*src*/)
{
if (_flags & Locked) {
return;
@@ -645,7 +645,7 @@ Region::recompute_position_from_lock_style ()
}
void
-Region::nudge_position (nframes64_t n, void *src)
+Region::nudge_position (nframes64_t n, void */*src*/)
{
if (_flags & Locked) {
return;
@@ -684,7 +684,7 @@ Region::set_ancestral_data (nframes64_t s, nframes64_t l, float st, float sh)
}
void
-Region::set_start (nframes_t pos, void *src)
+Region::set_start (nframes_t pos, void */*src*/)
{
if (_flags & (Locked|PositionLocked)) {
return;
@@ -710,7 +710,7 @@ Region::set_start (nframes_t pos, void *src)
}
void
-Region::trim_start (nframes_t new_position, void *src)
+Region::trim_start (nframes_t new_position, void */*src*/)
{
if (_flags & (Locked|PositionLocked)) {
return;
@@ -797,7 +797,7 @@ Region::trim_front (nframes_t new_position, void *src)
}
void
-Region::trim_end (nframes_t new_endpoint, void *src)
+Region::trim_end (nframes_t new_endpoint, void */*src*/)
{
if (_flags & Locked) {
return;
@@ -827,7 +827,7 @@ Region::trim_to (nframes_t position, nframes_t length, void *src)
}
void
-Region::trim_to_internal (nframes_t position, nframes_t length, void *src)
+Region::trim_to_internal (nframes_t position, nframes_t length, void */*src*/)
{
int32_t start_shift;
nframes_t new_start;
@@ -1099,7 +1099,7 @@ Region::set_layer (layer_t l)
}
XMLNode&
-Region::state (bool full_state)
+Region::state (bool /*full_state*/)
{
XMLNode *node = new XMLNode ("Region");
char buf[64];
@@ -1362,7 +1362,7 @@ Region::freeze ()
}
void
-Region::thaw (const string& why)
+Region::thaw (const string& /*why*/)
{
Change what_changed = Change (0);
diff --git a/libs/ardour/route.cc b/libs/ardour/route.cc
index 26c0cc6616..73323b4aca 100644
--- a/libs/ardour/route.cc
+++ b/libs/ardour/route.cc
@@ -321,7 +321,7 @@ Route::set_gain (gain_t val, void *src)
void
Route::process_output_buffers (BufferSet& bufs,
sframes_t start_frame, sframes_t end_frame, nframes_t nframes,
- bool with_processors, int declick)
+ bool /*with_processors*/, int declick)
{
bool monitor;
@@ -1599,7 +1599,7 @@ Route::set_state (const XMLNode& node)
}
int
-Route::_set_state (const XMLNode& node, bool call_base)
+Route::_set_state (const XMLNode& node, bool /*call_base*/)
{
XMLNodeList nlist;
@@ -1958,7 +1958,7 @@ Route::release_return_buffer () const
}
int
-Route::listen_via (boost::shared_ptr<Route> route, Placement placement, bool active, bool aux)
+Route::listen_via (boost::shared_ptr<Route> route, Placement placement, bool /*active*/, bool aux)
{
vector<string> ports;
vector<string>::const_iterator i;
@@ -2103,7 +2103,7 @@ Route::feeds (boost::shared_ptr<Route> other)
}
void
-Route::handle_transport_stopped (bool abort_ignored, bool did_locate, bool can_flush_processors)
+Route::handle_transport_stopped (bool /*abort_ignored*/, bool did_locate, bool can_flush_processors)
{
nframes_t now = _session.transport_frame();
@@ -2129,7 +2129,7 @@ Route::handle_transport_stopped (bool abort_ignored, bool did_locate, bool can_f
}
void
-Route::input_change_handler (IOChange change, void *src)
+Route::input_change_handler (IOChange change, void * /*src*/)
{
if ((change & ConfigurationChanged)) {
configure_processors (0);
@@ -2137,7 +2137,7 @@ Route::input_change_handler (IOChange change, void *src)
}
void
-Route::output_change_handler (IOChange change, void *src)
+Route::output_change_handler (IOChange change, void * /*src*/)
{
if ((change & ConfigurationChanged)) {
@@ -2159,7 +2159,7 @@ Route::pans_required () const
int
Route::no_roll (nframes_t nframes, sframes_t start_frame, sframes_t end_frame,
- bool session_state_changing, bool can_record, bool rec_monitors_input)
+ bool session_state_changing, bool /*can_record*/, bool /*rec_monitors_input*/)
{
if (n_outputs().n_total() == 0) {
return 0;
@@ -2205,7 +2205,7 @@ Route::check_initial_delay (nframes_t nframes, nframes_t& transport_frame)
int
Route::roll (nframes_t nframes, sframes_t start_frame, sframes_t end_frame, int declick,
- bool can_record, bool rec_monitors_input)
+ bool /*can_record*/, bool /*rec_monitors_input*/)
{
{
// automation snapshot can also be called from the non-rt context
@@ -2240,8 +2240,8 @@ Route::roll (nframes_t nframes, sframes_t start_frame, sframes_t end_frame, int
}
int
-Route::silent_roll (nframes_t nframes, sframes_t start_frame, sframes_t end_frame,
- bool can_record, bool rec_monitors_input)
+Route::silent_roll (nframes_t nframes, sframes_t /*start_frame*/, sframes_t /*end_frame*/,
+ bool /*can_record*/, bool /*rec_monitors_input*/)
{
silence (nframes);
return 0;
@@ -2497,7 +2497,7 @@ Route::set_pending_declick (int declick)
*/
void
-Route::shift (nframes64_t pos, nframes64_t frames)
+Route::shift (nframes64_t /*pos*/, nframes64_t /*frames*/)
{
#ifdef THIS_NEEDS_FIXING_FOR_V3
diff --git a/libs/ardour/session.cc b/libs/ardour/session.cc
index 9eb090f02a..ba4e6db37d 100644
--- a/libs/ardour/session.cc
+++ b/libs/ardour/session.cc
@@ -1064,7 +1064,7 @@ Session::set_auto_loop_location (Location* location)
}
void
-Session::locations_added (Location* ignored)
+Session::locations_added (Location *)
{
set_dirty ();
}
@@ -1355,7 +1355,7 @@ Session::set_block_size (nframes_t nframes)
}
void
-Session::set_default_fade (float steepness, float fade_msecs)
+Session::set_default_fade (float /*steepness*/, float /*fade_msecs*/)
{
#if 0
nframes_t fade_frames;
@@ -2362,13 +2362,13 @@ Session::remove_route (shared_ptr<Route> route)
}
void
-Session::route_mute_changed (void* src)
+Session::route_mute_changed (void* /*src*/)
{
set_dirty ();
}
void
-Session::route_listen_changed (void* src, boost::weak_ptr<Route> wpr)
+Session::route_listen_changed (void* /*src*/, boost::weak_ptr<Route> wpr)
{
boost::shared_ptr<Route> route = wpr.lock();
if (!route) {
@@ -2384,7 +2384,7 @@ Session::route_listen_changed (void* src, boost::weak_ptr<Route> wpr)
}
void
-Session::route_solo_changed (void* src, boost::weak_ptr<Route> wpr)
+Session::route_solo_changed (void* /*src*/, boost::weak_ptr<Route> wpr)
{
if (solo_update_disabled) {
// We know already
@@ -3810,7 +3810,7 @@ Session::bundle_by_name (string name) const
}
void
-Session::tempo_map_changed (Change ignored)
+Session::tempo_map_changed (Change)
{
clear_clicks ();
@@ -4095,7 +4095,7 @@ Session::freeze (InterThreadInfo& itt)
boost::shared_ptr<Region>
Session::write_one_track (AudioTrack& track, nframes_t start, nframes_t end,
- bool overwrite, vector<boost::shared_ptr<Source> >& srcs,
+ bool /*overwrite*/, vector<boost::shared_ptr<Source> >& srcs,
InterThreadInfo& itt, bool enable_processing)
{
boost::shared_ptr<Region> result;
diff --git a/libs/ardour/session_midi.cc b/libs/ardour/session_midi.cc
index 6c0c48f50e..990246aa7c 100644
--- a/libs/ardour/session_midi.cc
+++ b/libs/ardour/session_midi.cc
@@ -249,7 +249,7 @@ Session::set_mmc_port (string port_tag)
}
int
-Session::set_midi_port (string port_tag)
+Session::set_midi_port (string /*port_tag*/)
{
#if 0
if (port_tag.length() == 0) {
@@ -492,7 +492,7 @@ Session::setup_midi_control ()
}
void
-Session::spp_start (Parser& ignored, nframes_t timestamp)
+Session::spp_start (Parser &, nframes_t /*timestamp*/)
{
if (Config->get_mmc_control() && (Config->get_slave_source() != MTC)) {
request_transport_speed (1.0);
@@ -506,7 +506,7 @@ Session::spp_continue (Parser& ignored, nframes_t timestamp)
}
void
-Session::spp_stop (Parser& ignored, nframes_t timestamp)
+Session::spp_stop (Parser&, nframes_t /*timestamp*/)
{
if (Config->get_mmc_control()) {
request_stop ();
@@ -537,7 +537,7 @@ Session::midi_clock_stop (Parser& ignored, nframes_t timestamp)
*/
void
-Session::mmc_deferred_play (MIDI::MachineControl &mmc)
+Session::mmc_deferred_play (MIDI::MachineControl &/*mmc*/)
{
if (Config->get_mmc_control() && (Config->get_slave_source() != MTC)) {
request_transport_speed (1.0);
@@ -545,7 +545,7 @@ Session::mmc_deferred_play (MIDI::MachineControl &mmc)
}
void
-Session::mmc_record_pause (MIDI::MachineControl &mmc)
+Session::mmc_record_pause (MIDI::MachineControl &/*mmc*/)
{
if (Config->get_mmc_control()) {
maybe_enable_record();
@@ -553,7 +553,7 @@ Session::mmc_record_pause (MIDI::MachineControl &mmc)
}
void
-Session::mmc_record_strobe (MIDI::MachineControl &mmc)
+Session::mmc_record_strobe (MIDI::MachineControl &/*mmc*/)
{
if (!Config->get_mmc_control())
return;
@@ -581,7 +581,7 @@ Session::mmc_record_strobe (MIDI::MachineControl &mmc)
}
void
-Session::mmc_record_exit (MIDI::MachineControl &mmc)
+Session::mmc_record_exit (MIDI::MachineControl &/*mmc*/)
{
if (Config->get_mmc_control()) {
disable_record (false);
@@ -589,7 +589,7 @@ Session::mmc_record_exit (MIDI::MachineControl &mmc)
}
void
-Session::mmc_stop (MIDI::MachineControl &mmc)
+Session::mmc_stop (MIDI::MachineControl &/*mmc*/)
{
if (Config->get_mmc_control()) {
request_stop ();
@@ -597,7 +597,7 @@ Session::mmc_stop (MIDI::MachineControl &mmc)
}
void
-Session::mmc_pause (MIDI::MachineControl &mmc)
+Session::mmc_pause (MIDI::MachineControl &/*mmc*/)
{
if (Config->get_mmc_control()) {
@@ -617,7 +617,7 @@ Session::mmc_pause (MIDI::MachineControl &mmc)
static bool step_queued = false;
void
-Session::mmc_step (MIDI::MachineControl &mmc, int steps)
+Session::mmc_step (MIDI::MachineControl &/*mmc*/, int steps)
{
if (!Config->get_mmc_control()) {
return;
@@ -668,7 +668,7 @@ Session::mmc_step (MIDI::MachineControl &mmc, int steps)
}
void
-Session::mmc_rewind (MIDI::MachineControl &mmc)
+Session::mmc_rewind (MIDI::MachineControl &/*mmc*/)
{
if (Config->get_mmc_control()) {
request_transport_speed(-8.0f);
@@ -676,7 +676,7 @@ Session::mmc_rewind (MIDI::MachineControl &mmc)
}
void
-Session::mmc_fast_forward (MIDI::MachineControl &mmc)
+Session::mmc_fast_forward (MIDI::MachineControl &/*mmc*/)
{
if (Config->get_mmc_control()) {
request_transport_speed(8.0f);
@@ -684,7 +684,7 @@ Session::mmc_fast_forward (MIDI::MachineControl &mmc)
}
void
-Session::mmc_locate (MIDI::MachineControl &mmc, const MIDI::byte* mmc_tc)
+Session::mmc_locate (MIDI::MachineControl &/*mmc*/, const MIDI::byte* mmc_tc)
{
if (!Config->get_mmc_control()) {
return;
@@ -725,7 +725,7 @@ Session::mmc_locate (MIDI::MachineControl &mmc, const MIDI::byte* mmc_tc)
}
void
-Session::mmc_shuttle (MIDI::MachineControl &mmc, float speed, bool forw)
+Session::mmc_shuttle (MIDI::MachineControl &/*mmc*/, float speed, bool forw)
{
if (!Config->get_mmc_control()) {
return;
@@ -778,7 +778,7 @@ Session::change_midi_ports ()
* the first one with the beginning of this cycle as the new start point.
*/
int
-Session::send_full_time_code(nframes_t nframes)
+Session::send_full_time_code(nframes_t /*nframes*/)
{
/* This function could easily send at a given frame offset, but would
* that be useful? Does ardour do sub-block accurate locating? [DR] */
diff --git a/libs/ardour/session_state.cc b/libs/ardour/session_state.cc
index 0946acfade..32ef8f58c5 100644
--- a/libs/ardour/session_state.cc
+++ b/libs/ardour/session_state.cc
@@ -1432,7 +1432,7 @@ Session::XMLRegionFactory (const XMLNode& node, bool full)
}
boost::shared_ptr<AudioRegion>
-Session::XMLAudioRegionFactory (const XMLNode& node, bool full)
+Session::XMLAudioRegionFactory (const XMLNode& node, bool /*full*/)
{
const XMLProperty* prop;
boost::shared_ptr<Source> source;
@@ -1551,7 +1551,7 @@ Session::XMLAudioRegionFactory (const XMLNode& node, bool full)
}
boost::shared_ptr<MidiRegion>
-Session::XMLMidiRegionFactory (const XMLNode& node, bool full)
+Session::XMLMidiRegionFactory (const XMLNode& node, bool /*full*/)
{
const XMLProperty* prop;
boost::shared_ptr<Source> source;
@@ -2061,7 +2061,7 @@ Session::auto_save()
}
static bool
-state_file_filter (const string &str, void *arg)
+state_file_filter (const string &str, void */*arg*/)
{
return (str.length() > strlen(statefile_suffix) &&
str.find (statefile_suffix) == (str.length() - strlen (statefile_suffix)));
@@ -2266,13 +2266,13 @@ Session::set_global_record_enable (GlobalRouteBooleanState s, void* src)
}
static bool
-accept_all_non_peak_files (const string& path, void *arg)
+accept_all_non_peak_files (const string& path, void */*arg*/)
{
return (path.length() > 5 && path.find (peakfile_suffix) != (path.length() - 5));
}
static bool
-accept_all_state_files (const string& path, void *arg)
+accept_all_state_files (const string& path, void */*arg*/)
{
return (path.length() > 7 && path.find (".ardour") == (path.length() - 7));
}
diff --git a/libs/ardour/session_time.cc b/libs/ardour/session_time.cc
index 3126287c6b..0363c48339 100644
--- a/libs/ardour/session_time.cc
+++ b/libs/ardour/session_time.cc
@@ -485,10 +485,10 @@ Session::jack_sync_callback (jack_transport_state_t state,
}
void
-Session::jack_timebase_callback (jack_transport_state_t state,
- nframes_t nframes,
+Session::jack_timebase_callback (jack_transport_state_t /*state*/,
+ nframes_t /*nframes*/,
jack_position_t* pos,
- int new_position)
+ int /*new_position*/)
{
BBT_Time bbt;
@@ -565,7 +565,7 @@ Session::jack_timebase_callback (jack_transport_state_t state,
}
ARDOUR::nframes_t
-Session::convert_to_frames_at (nframes_t position, AnyTime const & any)
+Session::convert_to_frames_at (nframes_t /*position*/, AnyTime const & any)
{
double secs;
diff --git a/libs/ardour/sndfileimportable.cc b/libs/ardour/sndfileimportable.cc
index 71d3342dbc..3328eddb23 100644
--- a/libs/ardour/sndfileimportable.cc
+++ b/libs/ardour/sndfileimportable.cc
@@ -42,7 +42,7 @@ SndFileImportableSource::samplerate() const
}
void
-SndFileImportableSource::seek (nframes_t pos)
+SndFileImportableSource::seek (nframes_t /*pos*/)
{
sf_seek (in.get(), 0, SEEK_SET);
}
diff --git a/libs/ardour/sndfilesource.cc b/libs/ardour/sndfilesource.cc
index df35dbe387..f84c0ae14b 100644
--- a/libs/ardour/sndfilesource.cc
+++ b/libs/ardour/sndfilesource.cc
@@ -512,7 +512,7 @@ SndFileSource::flush_header ()
}
int
-SndFileSource::setup_broadcast_info (sframes_t when, struct tm& now, time_t tnow)
+SndFileSource::setup_broadcast_info (sframes_t /*when*/, struct tm& now, time_t /*tnow*/)
{
if (!writable()) {
warning << string_compose (_("attempt to store broadcast info in a non-writable audio file source (%1)"), _path) << endmsg;
diff --git a/libs/ardour/template_utils.cc b/libs/ardour/template_utils.cc
index daf133fa05..a0daca713d 100644
--- a/libs/ardour/template_utils.cc
+++ b/libs/ardour/template_utils.cc
@@ -64,7 +64,7 @@ user_route_template_directory ()
}
static bool
-template_filter (const string &str, void *arg)
+template_filter (const string &str, void */*arg*/)
{
cerr << "Checking into " << str << " using " << template_suffix << endl;
return (str.length() > strlen(template_suffix) &&
diff --git a/libs/ardour/ticker.cc b/libs/ardour/ticker.cc
index 4fe8fab520..e55474588a 100644
--- a/libs/ardour/ticker.cc
+++ b/libs/ardour/ticker.cc
@@ -119,7 +119,7 @@ void MidiClockTicker::transport_looped()
_last_tick = loop_location->start() - elapsed_since_last_tick;
}
-void MidiClockTicker::tick(const nframes_t& transport_frames, const BBT_Time& transport_bbt, const SMPTE::Time& transport_smpt)
+void MidiClockTicker::tick(const nframes_t& transport_frames, const BBT_Time& /*transport_bbt*/, const SMPTE::Time& /*transport_smpt*/)
{
#ifdef WITH_JACK_MIDI
if (!Config->get_send_midi_clock() || _session == 0 || _session->transport_speed() != 1.0f)
diff --git a/libs/ardour/track.cc b/libs/ardour/track.cc
index 5ff79098d8..64ec77b683 100644
--- a/libs/ardour/track.cc
+++ b/libs/ardour/track.cc
@@ -235,7 +235,7 @@ Track::zero_diskstream_id_in_xml (XMLNode& node)
int
Track::no_roll (nframes_t nframes, sframes_t start_frame, sframes_t end_frame,
- bool session_state_changing, bool can_record, bool rec_monitors_input)
+ bool session_state_changing, bool can_record, bool /*rec_monitors_input*/)
{
if (n_outputs().n_total() == 0) {
return 0;
@@ -320,7 +320,7 @@ Track::no_roll (nframes_t nframes, sframes_t start_frame, sframes_t end_frame,
}
int
-Track::silent_roll (nframes_t nframes, sframes_t start_frame, sframes_t end_frame,
+Track::silent_roll (nframes_t nframes, sframes_t /*start_frame*/, sframes_t /*end_frame*/,
bool can_record, bool rec_monitors_input)
{
if (n_outputs().n_total() == 0 && _processors.empty()) {
diff --git a/libs/ardour/uri_map.cc b/libs/ardour/uri_map.cc
index fc82255ef8..82869de134 100644
--- a/libs/ardour/uri_map.cc
+++ b/libs/ardour/uri_map.cc
@@ -46,7 +46,7 @@ URIMap::uri_to_id(const char* map,
uint32_t
URIMap::uri_map_uri_to_id(LV2_URI_Map_Callback_Data callback_data,
- const char* map,
+ const char* /*map*/,
const char* uri)
{
// TODO: map ignored, < UINT16_MAX assumed
diff --git a/libs/evoral/src/ControlList.cpp b/libs/evoral/src/ControlList.cpp
index dee0242143..c4c2cd84ec 100644
--- a/libs/evoral/src/ControlList.cpp
+++ b/libs/evoral/src/ControlList.cpp
@@ -211,7 +211,7 @@ void ControlList::_x_scale (double factor)
}
void
-ControlList::reposition_for_rt_add (double when)
+ControlList::reposition_for_rt_add (double /*when*/)
{
_rt_insertion_point = _events.end();
}
@@ -1254,7 +1254,7 @@ ControlList::clear (double start, double end)
}
bool
-ControlList::paste (ControlList& alist, double pos, float times)
+ControlList::paste (ControlList& alist, double pos, float /*times*/)
{
if (alist._events.empty()) {
return false;
diff --git a/libs/evoral/src/libsmf/smf_load.c b/libs/evoral/src/libsmf/smf_load.c
index 857f3d485f..71ad02498e 100644
--- a/libs/evoral/src/libsmf/smf_load.c
+++ b/libs/evoral/src/libsmf/smf_load.c
@@ -379,6 +379,8 @@ expected_message_length(unsigned char status, const unsigned char *second_byte,
static int
extract_sysex_event(const unsigned char *buf, const size_t buffer_length, smf_event_t *event, uint32_t *len, int last_status)
{
+ (void) last_status;
+
int status;
int32_t vlq_length, message_length;
const unsigned char *c = buf;
@@ -419,6 +421,8 @@ extract_sysex_event(const unsigned char *buf, const size_t buffer_length, smf_ev
static int
extract_escaped_event(const unsigned char *buf, const size_t buffer_length, smf_event_t *event, uint32_t *len, int last_status)
{
+ (void) last_status;
+
int status;
int32_t message_length, vlq_length;
const unsigned char *c = buf;
diff --git a/libs/gtkmm2ext/auto_spin.cc b/libs/gtkmm2ext/auto_spin.cc
index 2e051b5be8..b8f1bb9017 100644
--- a/libs/gtkmm2ext/auto_spin.cc
+++ b/libs/gtkmm2ext/auto_spin.cc
@@ -57,7 +57,7 @@ AutoSpin::stop_timer ()
}
gint
-AutoSpin::stop_spinning (GdkEventButton *ev)
+AutoSpin::stop_spinning (GdkEventButton */*ev*/)
{
need_timer = false;
stop_timer ();
diff --git a/libs/gtkmm2ext/barcontroller.cc b/libs/gtkmm2ext/barcontroller.cc
index 5dad2dd8de..60ec7e1cd6 100644
--- a/libs/gtkmm2ext/barcontroller.cc
+++ b/libs/gtkmm2ext/barcontroller.cc
@@ -258,7 +258,7 @@ BarController::mouse_control (double x, GdkWindow* window, double scaling)
}
bool
-BarController::expose (GdkEventExpose* event)
+BarController::expose (GdkEventExpose* /*event*/)
{
Glib::RefPtr<Gdk::Window> win (darea.get_window());
Widget* parent;
@@ -433,7 +433,7 @@ BarController::entry_activated ()
}
bool
-BarController::entry_focus_out (GdkEventFocus* ev)
+BarController::entry_focus_out (GdkEventFocus* /*ev*/)
{
entry_activated ();
return true;
@@ -454,7 +454,7 @@ BarController::set_sensitive (bool yn)
}
bool
-BarController::entry_input (double* v)
+BarController::entry_input (double* /*v*/)
{
return false;
}
diff --git a/libs/gtkmm2ext/binding_proxy.cc b/libs/gtkmm2ext/binding_proxy.cc
index 845146239d..d0696b105f 100644
--- a/libs/gtkmm2ext/binding_proxy.cc
+++ b/libs/gtkmm2ext/binding_proxy.cc
@@ -107,7 +107,7 @@ BindingProxy::learning_finished ()
bool
-BindingProxy::prompter_hiding (GdkEventAny *ev)
+BindingProxy::prompter_hiding (GdkEventAny */*ev*/)
{
learning_connection.disconnect ();
if (controllable) {
diff --git a/libs/gtkmm2ext/cell_renderer_pixbuf_toggle.cc b/libs/gtkmm2ext/cell_renderer_pixbuf_toggle.cc
index d3f02a50f8..15cd1cbf1a 100644
--- a/libs/gtkmm2ext/cell_renderer_pixbuf_toggle.cc
+++ b/libs/gtkmm2ext/cell_renderer_pixbuf_toggle.cc
@@ -71,7 +71,7 @@ CellRendererPixbufToggle::activate_vfunc(GdkEvent*, Gtk::Widget&, const Glib::us
void
-CellRendererPixbufToggle::render_vfunc (const Glib::RefPtr<Gdk::Drawable>& window, Gtk::Widget& widget, const Gdk::Rectangle& background_area, const Gdk::Rectangle& cell_area, const Gdk::Rectangle& expose_area, Gtk::CellRendererState flags)
+CellRendererPixbufToggle::render_vfunc (const Glib::RefPtr<Gdk::Drawable>& window, Gtk::Widget& /*widget*/, const Gdk::Rectangle& /*background_area*/, const Gdk::Rectangle& cell_area, const Gdk::Rectangle& /*expose_area*/, Gtk::CellRendererState /*flags*/)
{
int offset_width = 0;
int offset_height = 0;
@@ -92,7 +92,7 @@ CellRendererPixbufToggle::render_vfunc (const Glib::RefPtr<Gdk::Drawable>& windo
}
void
-CellRendererPixbufToggle::get_size_vfunc (Gtk::Widget& widget, const Gdk::Rectangle* cell_area, int* x_offset, int* y_offset, int* width, int* height) const
+CellRendererPixbufToggle::get_size_vfunc (Gtk::Widget& /*widget*/, const Gdk::Rectangle* /*cell_area*/, int* /*x_offset*/, int* /*y_offset*/, int* /*width*/, int* /*height*/) const
{
//cerr << "cell_renderer_pixbuf_toggle get_size" << endl;
diff --git a/libs/gtkmm2ext/click_box.cc b/libs/gtkmm2ext/click_box.cc
index 3ab7ea883c..dc9eb39433 100644
--- a/libs/gtkmm2ext/click_box.cc
+++ b/libs/gtkmm2ext/click_box.cc
@@ -81,7 +81,7 @@ ClickBox::button_release_handler (GdkEventButton* ev)
void
ClickBox::default_printer (char buf[32], Gtk::Adjustment &adj,
- void *ignored)
+ void *)
{
sprintf (buf, "%.2f", adj.get_value());
}
@@ -104,9 +104,8 @@ ClickBox::set_label ()
}
void
-ClickBox::style_changed (const Glib::RefPtr<Gtk::Style>& ignored)
+ClickBox::style_changed (const Glib::RefPtr<Gtk::Style>&)
{
-
layout->context_changed ();
layout->get_pixel_size (twidth, theight);
}
diff --git a/libs/gtkmm2ext/fastmeter.cc b/libs/gtkmm2ext/fastmeter.cc
index bdd8919d36..4bb6e81d00 100644
--- a/libs/gtkmm2ext/fastmeter.cc
+++ b/libs/gtkmm2ext/fastmeter.cc
@@ -551,7 +551,7 @@ FastMeter::queue_vertical_redraw (const Glib::RefPtr<Gdk::Window>& win, float ol
}
void
-FastMeter::queue_horizontal_redraw (const Glib::RefPtr<Gdk::Window>& win, float old_level)
+FastMeter::queue_horizontal_redraw (const Glib::RefPtr<Gdk::Window>& /*win*/, float /*old_level*/)
{
/* XXX OPTIMIZE (when we have some horizontal meters) */
queue_draw ();
diff --git a/libs/gtkmm2ext/gtk_ui.cc b/libs/gtkmm2ext/gtk_ui.cc
index bf85333541..cba5f53377 100644
--- a/libs/gtkmm2ext/gtk_ui.cc
+++ b/libs/gtkmm2ext/gtk_ui.cc
@@ -338,7 +338,7 @@ UI::idle_add (int (*func)(void *), void *arg)
/* END abstract_ui interfaces */
void
-UI::signal_pipe_callback (void *arg, int fd, GdkInputCondition cond)
+UI::signal_pipe_callback (void *arg, int fd, GdkInputCondition /*cond*/)
{
char buf[256];
@@ -518,7 +518,7 @@ UI::toggle_errors ()
}
void
-UI::display_message (const char *prefix, gint prefix_len, RefPtr<TextBuffer::Tag> ptag, RefPtr<TextBuffer::Tag> mtag, const char *msg)
+UI::display_message (const char *prefix, gint /*prefix_len*/, RefPtr<TextBuffer::Tag> ptag, RefPtr<TextBuffer::Tag> mtag, const char *msg)
{
RefPtr<TextBuffer> buffer (errors->text().get_buffer());
@@ -616,7 +616,7 @@ UI::flush_pending ()
}
bool
-UI::just_hide_it (GdkEventAny *ev, Window *win)
+UI::just_hide_it (GdkEventAny */*ev*/, Window *win)
{
win->hide ();
return true;
@@ -666,7 +666,7 @@ UI::color_selection_done (bool status)
}
bool
-UI::color_selection_deleted (GdkEventAny *ev)
+UI::color_selection_deleted (GdkEventAny */*ev*/)
{
Main::quit ();
return true;
diff --git a/libs/gtkmm2ext/gtkmm2ext/barcontroller.h b/libs/gtkmm2ext/gtkmm2ext/barcontroller.h
index 5970fe2d5f..9c9c4c18b9 100644
--- a/libs/gtkmm2ext/gtkmm2ext/barcontroller.h
+++ b/libs/gtkmm2ext/gtkmm2ext/barcontroller.h
@@ -74,7 +74,7 @@ class BarController : public Gtk::Frame
Gtk::SpinButton spinner;
bool use_parent;
- virtual std::string get_label (int& x) {
+ virtual std::string get_label (int& /*x*/) {
return "";
}
diff --git a/libs/gtkmm2ext/popup.cc b/libs/gtkmm2ext/popup.cc
index 2d586d0317..199c087c26 100644
--- a/libs/gtkmm2ext/popup.cc
+++ b/libs/gtkmm2ext/popup.cc
@@ -111,7 +111,7 @@ PopUp::touch ()
}
gint
-PopUp::button_click (GdkEventButton *ev)
+PopUp::button_click (GdkEventButton */*ev*/)
{
remove ();
return TRUE;
@@ -131,7 +131,7 @@ PopUp::set_name (string name)
}
bool
-PopUp::on_delete_event (GdkEventAny* ev)
+PopUp::on_delete_event (GdkEventAny* /*ev*/)
{
hide();
diff --git a/libs/gtkmm2ext/prompter.cc b/libs/gtkmm2ext/prompter.cc
index 0ff9710338..5eab2614c8 100644
--- a/libs/gtkmm2ext/prompter.cc
+++ b/libs/gtkmm2ext/prompter.cc
@@ -75,7 +75,7 @@ Prompter::init ()
}
void
-Prompter::change_labels (string okstr, string cancelstr)
+Prompter::change_labels (string /*okstr*/, string /*cancelstr*/)
{
// dynamic_cast<Gtk::Label*>(ok.get_child())->set_text (okstr);
// dynamic_cast<Gtk::Label*>(cancel.get_child())->set_text (cancelstr);
diff --git a/libs/gtkmm2ext/slider_controller.cc b/libs/gtkmm2ext/slider_controller.cc
index 4eee6a6f36..3947ed8096 100644
--- a/libs/gtkmm2ext/slider_controller.cc
+++ b/libs/gtkmm2ext/slider_controller.cc
@@ -30,7 +30,7 @@ using namespace PBD;
SliderController::SliderController (Glib::RefPtr<Gdk::Pixbuf> image,
Gtk::Adjustment *adj, int orientation,
- bool with_numeric)
+ bool /*with_numeric*/)
: PixFader (image, *adj, orientation),
spin (*adj, 0, 2)
diff --git a/libs/gtkmm2ext/tearoff.cc b/libs/gtkmm2ext/tearoff.cc
index be3bfe4113..aad14308a4 100644
--- a/libs/gtkmm2ext/tearoff.cc
+++ b/libs/gtkmm2ext/tearoff.cc
@@ -116,7 +116,7 @@ TearOff::set_visible (bool yn)
}
gint
-TearOff::tearoff_click (GdkEventButton* ev)
+TearOff::tearoff_click (GdkEventButton* /*ev*/)
{
if (_can_be_torn_off) {
remove (contents);
@@ -132,7 +132,7 @@ TearOff::tearoff_click (GdkEventButton* ev)
}
gint
-TearOff::close_click (GdkEventButton* ev)
+TearOff::close_click (GdkEventButton* /*ev*/)
{
window_box.remove (contents);
pack_start (contents);
@@ -162,7 +162,7 @@ TearOff::window_button_press (GdkEventButton* ev)
}
gint
-TearOff::window_button_release (GdkEventButton* ev)
+TearOff::window_button_release (GdkEventButton* /*ev*/)
{
dragging = false;
own_window.remove_modal_grab();
@@ -170,7 +170,7 @@ TearOff::window_button_release (GdkEventButton* ev)
}
gint
-TearOff::window_delete_event (GdkEventAny* ev)
+TearOff::window_delete_event (GdkEventAny* /*ev*/)
{
return close_click(0);
}
diff --git a/libs/midi++2/jack_midiport.cc b/libs/midi++2/jack_midiport.cc
index 65d7736c1b..92be375c08 100644
--- a/libs/midi++2/jack_midiport.cc
+++ b/libs/midi++2/jack_midiport.cc
@@ -275,7 +275,7 @@ JACK_MidiPort::get_state () const
}
void
-JACK_MidiPort::set_state (const XMLNode& node)
+JACK_MidiPort::set_state (const XMLNode& /*node*/)
{
}
diff --git a/libs/midi++2/midi++/fd_midiport.h b/libs/midi++2/midi++/fd_midiport.h
index 8f942cf970..986ff5f0e0 100644
--- a/libs/midi++2/midi++/fd_midiport.h
+++ b/libs/midi++2/midi++/fd_midiport.h
@@ -52,7 +52,7 @@ class FD_MidiPort : public Port
int _fd;
virtual void open (const Port::Descriptor&);
- virtual int write (byte *msg, size_t msglen, timestamp_t ignored) {
+ virtual int write (byte *msg, size_t msglen, timestamp_t) {
int nwritten;
if ((_mode & O_ACCMODE) == O_RDONLY) {
diff --git a/libs/midi++2/midichannel.cc b/libs/midi++2/midichannel.cc
index 0a43b9c900..f19c913644 100644
--- a/libs/midi++2/midichannel.cc
+++ b/libs/midi++2/midichannel.cc
@@ -76,7 +76,7 @@ Channel::connect_output_signals ()
}
void
-Channel::reset (timestamp_t timestamp, nframes_t nframes, bool notes_off)
+Channel::reset (timestamp_t timestamp, nframes_t /*nframes*/, bool notes_off)
{
_program_number = _channel_number;
_bank_number = 0;
@@ -115,8 +115,7 @@ Channel::reset (timestamp_t timestamp, nframes_t nframes, bool notes_off)
}
void
-Channel::process_note_off (Parser &parser, EventTwoBytes *tb)
-
+Channel::process_note_off (Parser & /*parser*/, EventTwoBytes *tb)
{
_last_note_off = tb->note_number;
_last_off_velocity = tb->velocity;
@@ -127,8 +126,7 @@ Channel::process_note_off (Parser &parser, EventTwoBytes *tb)
}
void
-Channel::process_note_on (Parser &parser, EventTwoBytes *tb)
-
+Channel::process_note_on (Parser & /*parser*/, EventTwoBytes *tb)
{
_last_note_on = tb->note_number;
_last_on_velocity = tb->velocity;
@@ -136,8 +134,7 @@ Channel::process_note_on (Parser &parser, EventTwoBytes *tb)
}
void
-Channel::process_controller (Parser &parser, EventTwoBytes *tb)
-
+Channel::process_controller (Parser & /*parser*/, EventTwoBytes *tb)
{
unsigned short cv;
@@ -216,36 +213,31 @@ Channel::process_controller (Parser &parser, EventTwoBytes *tb)
}
void
-Channel::process_program_change (Parser &parser, byte val)
-
+Channel::process_program_change (Parser & /*parser*/, byte val)
{
_program_number = val;
}
void
-Channel::process_chanpress (Parser &parser, byte val)
-
+Channel::process_chanpress (Parser & /*parser*/, byte val)
{
_chanpress = val;
}
void
-Channel::process_polypress (Parser &parser, EventTwoBytes *tb)
-
+Channel::process_polypress (Parser & /*parser*/, EventTwoBytes *tb)
{
_polypress[tb->note_number] = tb->value;
}
void
-Channel::process_pitchbend (Parser &parser, pitchbend_t val)
-
+Channel::process_pitchbend (Parser & /*parser*/, pitchbend_t val)
{
_pitch_bend = val;
}
void
-Channel::process_reset (Parser &parser)
-
+Channel::process_reset (Parser & /*parser*/)
{
reset (0, 1);
}
diff --git a/libs/midi++2/midifactory.cc b/libs/midi++2/midifactory.cc
index f8c8eb1a20..1980ac508b 100644
--- a/libs/midi++2/midifactory.cc
+++ b/libs/midi++2/midifactory.cc
@@ -124,7 +124,11 @@ PortFactory::ignore_duplicate_devices (Port::Type type)
}
int
+#if defined (WITH_ALSA) || defined (WITH_COREMIDI)
PortFactory::get_known_ports (vector<PortSet>& ports)
+#else
+PortFactory::get_known_ports (vector<PortSet>&)
+#endif
{
int n = 0;
#ifdef WITH_ALSA
diff --git a/libs/midi++2/midiparser.cc b/libs/midi++2/midiparser.cc
index 2222575678..8f416a9717 100644
--- a/libs/midi++2/midiparser.cc
+++ b/libs/midi++2/midiparser.cc
@@ -139,7 +139,7 @@ Parser::~Parser ()
}
void
-Parser::trace_event (Parser &p, byte *msg, size_t len)
+Parser::trace_event (Parser &, byte *msg, size_t len)
{
eventType type;
ostream *o;
diff --git a/libs/midi++2/midiport.cc b/libs/midi++2/midiport.cc
index 9df6e7e7d9..b7ffcc7b48 100644
--- a/libs/midi++2/midiport.cc
+++ b/libs/midi++2/midiport.cc
@@ -166,13 +166,13 @@ Port::get_state () const
}
void
-Port::set_state (const XMLNode& node)
+Port::set_state (const XMLNode& /*node*/)
{
// relax
}
void
-Port::gtk_read_callback (void *ptr, int fd, int cond)
+Port::gtk_read_callback (void *ptr, int /*fd*/, int /*cond*/)
{
byte buf[64];
((Port *)ptr)->read (buf, sizeof (buf));
diff --git a/libs/midi++2/mmc.cc b/libs/midi++2/mmc.cc
index 5ec1acd5d9..c16b243a16 100644
--- a/libs/midi++2/mmc.cc
+++ b/libs/midi++2/mmc.cc
@@ -192,9 +192,9 @@ static void build_mmc_cmd_map ()
}
-MachineControl::MachineControl (Port &p, float version,
- CommandSignature &csig,
- ResponseSignature &rsig)
+MachineControl::MachineControl (Port &p, float /*version*/,
+ CommandSignature & /*csig*/,
+ ResponseSignature & /*rsig*/)
: _port (p)
{
@@ -247,7 +247,7 @@ MachineControl::is_mmc (byte *sysex_buf, size_t len)
}
void
-MachineControl::process_mmc_message (Parser &p, byte *msg, size_t len)
+MachineControl::process_mmc_message (Parser &, byte *msg, size_t len)
{
size_t skiplen;
@@ -478,7 +478,7 @@ MachineControl::do_masked_write (byte *msg, size_t len)
}
void
-MachineControl::write_track_record_ready (byte *msg, size_t len)
+MachineControl::write_track_record_ready (byte *msg, size_t /*len*/)
{
size_t n;
@@ -564,7 +564,7 @@ MachineControl::write_track_record_ready (byte *msg, size_t len)
}
int
-MachineControl::do_locate (byte *msg, size_t msglen)
+MachineControl::do_locate (byte *msg, size_t /*msglen*/)
{
if (msg[2] == 0) {
@@ -580,7 +580,7 @@ MachineControl::do_locate (byte *msg, size_t msglen)
}
int
-MachineControl::do_step (byte *msg, size_t msglen)
+MachineControl::do_step (byte *msg, size_t /*msglen*/)
{
int steps = msg[2] & 0x3f;
@@ -593,7 +593,7 @@ MachineControl::do_step (byte *msg, size_t msglen)
}
int
-MachineControl::do_shuttle (byte *msg, size_t msglen)
+MachineControl::do_shuttle (byte *msg, size_t /*msglen*/)
{
size_t forward;
diff --git a/libs/pbd/pathscanner.cc b/libs/pbd/pathscanner.cc
index e391708175..35182042d3 100644
--- a/libs/pbd/pathscanner.cc
+++ b/libs/pbd/pathscanner.cc
@@ -210,7 +210,7 @@ PathScanner::find_first (const string &dirpath,
string *
PathScanner::find_first (const string &dirpath,
bool (*filter)(const string &, void *),
- void *arg,
+ void * /*arg*/,
bool match_fullpath,
bool return_fullpath)
{
diff --git a/libs/pbd/pbd/controllable.h b/libs/pbd/pbd/controllable.h
index 0007e04fd3..28b0b37cb9 100644
--- a/libs/pbd/pbd/controllable.h
+++ b/libs/pbd/pbd/controllable.h
@@ -84,7 +84,7 @@ class IgnorableControllable : public Controllable
IgnorableControllable () : PBD::Controllable ("ignoreMe") {}
~IgnorableControllable () {}
- void set_value (float v){}
+ void set_value (float /*v*/) {}
float get_value () const { return 0.0; }
};
diff --git a/libs/pbd/stacktrace.cc b/libs/pbd/stacktrace.cc
index bf4c5ba26d..9eb74e4a30 100644
--- a/libs/pbd/stacktrace.cc
+++ b/libs/pbd/stacktrace.cc
@@ -58,7 +58,7 @@ PBD::stacktrace (std::ostream& out, int levels)
#else
void
-PBD::stacktrace (std::ostream& out, int levels)
+PBD::stacktrace (std::ostream& out, int /*levels*/)
{
out << "stack tracing is not enabled on this platform" << std::endl;
}
diff --git a/libs/rubberband/src/HighFrequencyAudioCurve.cpp b/libs/rubberband/src/HighFrequencyAudioCurve.cpp
index 71108ad1c1..2ede70d283 100644
--- a/libs/rubberband/src/HighFrequencyAudioCurve.cpp
+++ b/libs/rubberband/src/HighFrequencyAudioCurve.cpp
@@ -38,7 +38,7 @@ HighFrequencyAudioCurve::setWindowSize(size_t newSize)
}
float
-HighFrequencyAudioCurve::process(const float *R__ mag, size_t increment)
+HighFrequencyAudioCurve::process(const float *R__ mag, size_t /*increment*/)
{
float result = 0.0;
@@ -52,7 +52,7 @@ HighFrequencyAudioCurve::process(const float *R__ mag, size_t increment)
}
float
-HighFrequencyAudioCurve::processDouble(const double *R__ mag, size_t increment)
+HighFrequencyAudioCurve::processDouble(const double *R__ mag, size_t /*increment*/)
{
float result = 0.0;
diff --git a/libs/rubberband/src/PercussiveAudioCurve.cpp b/libs/rubberband/src/PercussiveAudioCurve.cpp
index cb03afc141..aced9e08c2 100644
--- a/libs/rubberband/src/PercussiveAudioCurve.cpp
+++ b/libs/rubberband/src/PercussiveAudioCurve.cpp
@@ -57,7 +57,7 @@ PercussiveAudioCurve::setWindowSize(size_t newSize)
}
float
-PercussiveAudioCurve::process(const float *R__ mag, size_t increment)
+PercussiveAudioCurve::process(const float *R__ mag, size_t /*increment*/)
{
static float threshold = powf(10.f, 0.15f); // 3dB rise in square of magnitude
static float zeroThresh = powf(10.f, -8);
@@ -82,7 +82,7 @@ PercussiveAudioCurve::process(const float *R__ mag, size_t increment)
}
float
-PercussiveAudioCurve::processDouble(const double *R__ mag, size_t increment)
+PercussiveAudioCurve::processDouble(const double *R__ mag, size_t /*increment*/)
{
Profiler profiler("PercussiveAudioCurve::process");
diff --git a/libs/rubberband/src/SpectralDifferenceAudioCurve.cpp b/libs/rubberband/src/SpectralDifferenceAudioCurve.cpp
index e391e39b78..7d98828915 100644
--- a/libs/rubberband/src/SpectralDifferenceAudioCurve.cpp
+++ b/libs/rubberband/src/SpectralDifferenceAudioCurve.cpp
@@ -52,7 +52,7 @@ SpectralDifferenceAudioCurve::setWindowSize(size_t newSize)
}
float
-SpectralDifferenceAudioCurve::process(const float *R__ mag, size_t increment)
+SpectralDifferenceAudioCurve::process(const float *R__ mag, size_t /*increment*/)
{
float result = 0.0;
@@ -66,7 +66,7 @@ SpectralDifferenceAudioCurve::process(const float *R__ mag, size_t increment)
}
float
-SpectralDifferenceAudioCurve::processDouble(const double *R__ mag, size_t increment)
+SpectralDifferenceAudioCurve::processDouble(const double *R__ mag, size_t /*increment*/)
{
float result = 0.0;
diff --git a/libs/rubberband/src/Thread.cpp b/libs/rubberband/src/Thread.cpp
index 679115eb52..49f75b5b65 100644
--- a/libs/rubberband/src/Thread.cpp
+++ b/libs/rubberband/src/Thread.cpp
@@ -454,7 +454,7 @@ Mutex::trylock()
}
}
-Condition::Condition(string name) :
+Condition::Condition(string /*name*/) :
m_locked(false)
#ifdef DEBUG_CONDITION
, m_name(name)
diff --git a/libs/surfaces/control_protocol/control_protocol/control_protocol.h b/libs/surfaces/control_protocol/control_protocol/control_protocol.h
index 7de1054ad2..9efb4b299c 100644
--- a/libs/surfaces/control_protocol/control_protocol/control_protocol.h
+++ b/libs/surfaces/control_protocol/control_protocol/control_protocol.h
@@ -44,7 +44,7 @@ class ControlProtocol : public sigc::trackable, public PBD::Stateful, public Bas
virtual int set_active (bool yn) = 0;
bool get_active() const { return _active; }
- virtual int set_feedback (bool yn) { return 0; }
+ virtual int set_feedback (bool /*yn*/) { return 0; }
virtual bool get_feedback () const { return false; }
virtual void route_list_changed () {}
diff --git a/libs/surfaces/generic_midi/generic_midi_control_protocol.cc b/libs/surfaces/generic_midi/generic_midi_control_protocol.cc
index 9001b0d823..a4987ee9d2 100644
--- a/libs/surfaces/generic_midi/generic_midi_control_protocol.cc
+++ b/libs/surfaces/generic_midi/generic_midi_control_protocol.cc
@@ -77,7 +77,7 @@ GenericMidiControlProtocol::~GenericMidiControlProtocol ()
}
int
-GenericMidiControlProtocol::set_active (bool yn)
+GenericMidiControlProtocol::set_active (bool /*yn*/)
{
/* start/stop delivery/outbound thread */
return 0;
diff --git a/libs/surfaces/generic_midi/interface.cc b/libs/surfaces/generic_midi/interface.cc
index c70b5b6b61..c017e53d4c 100644
--- a/libs/surfaces/generic_midi/interface.cc
+++ b/libs/surfaces/generic_midi/interface.cc
@@ -6,7 +6,7 @@
using namespace ARDOUR;
ControlProtocol*
-new_generic_midi_protocol (ControlProtocolDescriptor* descriptor, Session* s)
+new_generic_midi_protocol (ControlProtocolDescriptor* /*descriptor*/, Session* s)
{
GenericMidiControlProtocol* gmcp;
@@ -25,13 +25,13 @@ new_generic_midi_protocol (ControlProtocolDescriptor* descriptor, Session* s)
}
void
-delete_generic_midi_protocol (ControlProtocolDescriptor* descriptor, ControlProtocol* cp)
+delete_generic_midi_protocol (ControlProtocolDescriptor* /*descriptor*/, ControlProtocol* cp)
{
delete cp;
}
bool
-probe_generic_midi_protocol (ControlProtocolDescriptor* descriptor)
+probe_generic_midi_protocol (ControlProtocolDescriptor* /*descriptor*/)
{
return GenericMidiControlProtocol::probe ();
}
diff --git a/libs/surfaces/generic_midi/midicontrollable.cc b/libs/surfaces/generic_midi/midicontrollable.cc
index 204332fc4b..9d80915ef6 100644
--- a/libs/surfaces/generic_midi/midicontrollable.cc
+++ b/libs/surfaces/generic_midi/midicontrollable.cc
@@ -160,7 +160,7 @@ MIDIControllable::midi_sense_note_off (Parser &p, EventTwoBytes *tb)
}
void
-MIDIControllable::midi_sense_note (Parser &p, EventTwoBytes *msg, bool is_on)
+MIDIControllable::midi_sense_note (Parser &, EventTwoBytes *msg, bool is_on)
{
if (!bistate) {
controllable.set_value (msg->note_number/127.0);
@@ -202,7 +202,7 @@ MIDIControllable::midi_sense_controller (Parser &, EventTwoBytes *msg)
}
void
-MIDIControllable::midi_sense_program_change (Parser &p, byte msg)
+MIDIControllable::midi_sense_program_change (Parser &, byte msg)
{
/* XXX program change messages make no sense for bistates */
@@ -213,7 +213,7 @@ MIDIControllable::midi_sense_program_change (Parser &p, byte msg)
}
void
-MIDIControllable::midi_sense_pitchbend (Parser &p, pitchbend_t pb)
+MIDIControllable::midi_sense_pitchbend (Parser &, pitchbend_t pb)
{
/* pitchbend messages make no sense for bistates */
@@ -224,7 +224,7 @@ MIDIControllable::midi_sense_pitchbend (Parser &p, pitchbend_t pb)
}
void
-MIDIControllable::midi_receiver (Parser &p, byte *msg, size_t len)
+MIDIControllable::midi_receiver (Parser &, byte *msg, size_t /*len*/)
{
/* we only respond to channel messages */
@@ -342,7 +342,7 @@ MIDIControllable::send_feedback ()
}
MIDI::byte*
-MIDIControllable::write_feedback (MIDI::byte* buf, int32_t& bufsize, bool force)
+MIDIControllable::write_feedback (MIDI::byte* buf, int32_t& bufsize, bool /*force*/)
{
if (control_type != none && feedback && bufsize > 2) {
diff --git a/libs/surfaces/osc/interface.cc b/libs/surfaces/osc/interface.cc
index de9154c80d..c8c559738e 100644
--- a/libs/surfaces/osc/interface.cc
+++ b/libs/surfaces/osc/interface.cc
@@ -23,7 +23,7 @@
using namespace ARDOUR;
ControlProtocol*
-new_osc_protocol (ControlProtocolDescriptor* descriptor, Session* s)
+new_osc_protocol (ControlProtocolDescriptor* /*descriptor*/, Session* s)
{
OSC* osc = new OSC (*s, Config->get_osc_port());
@@ -33,13 +33,13 @@ new_osc_protocol (ControlProtocolDescriptor* descriptor, Session* s)
}
void
-delete_osc_protocol (ControlProtocolDescriptor* descriptor, ControlProtocol* cp)
+delete_osc_protocol (ControlProtocolDescriptor* /*descriptor*/, ControlProtocol* cp)
{
delete cp;
}
bool
-probe_osc_protocol (ControlProtocolDescriptor* descriptor)
+probe_osc_protocol (ControlProtocolDescriptor* /*descriptor*/)
{
return true; // we can always do OSC
}
diff --git a/libs/surfaces/osc/osc.cc b/libs/surfaces/osc/osc.cc
index 264ce74f49..e26e0f7b77 100644
--- a/libs/surfaces/osc/osc.cc
+++ b/libs/surfaces/osc/osc.cc
@@ -51,12 +51,17 @@ using namespace sigc;
using namespace std;
+#ifdef DEBUG
static void error_callback(int num, const char *m, const char *path)
{
-#ifdef DEBUG
fprintf(stderr, "liblo server error %d in path %s: %s\n", num, path, m);
-#endif
}
+#else
+static void error_callback(int, const char *, const char *)
+{
+
+}
+#endif
OSC::OSC (Session& s, uint32_t port)
: ControlProtocol (s, "OSC")
@@ -601,7 +606,7 @@ OSC::catchall (const char *path, const char *types, lo_arg **argv, int argc, lo_
}
void
-OSC::route_added (RouteList& rl)
+OSC::route_added (RouteList&)
{
}
@@ -726,7 +731,7 @@ OSC::session_exported( std::string path, std::string name ) {
/* path callbacks */
int
-OSC::current_value (const char *path, const char *types, lo_arg **argv, int argc, void *data, void* user_data)
+OSC::current_value (const char */*path*/, const char */*types*/, lo_arg **/*argv*/, int /*argc*/, void */*data*/, void* /*user_data*/)
{
#if 0
const char* returl;
diff --git a/libs/surfaces/osc/osc.h b/libs/surfaces/osc/osc.h
index 4eebc906bb..2b6df6a80c 100644
--- a/libs/surfaces/osc/osc.h
+++ b/libs/surfaces/osc/osc.h
@@ -106,7 +106,7 @@ class OSC : public ARDOUR::ControlProtocol
static int _ ## name (const char *path, const char *types, lo_arg **argv, int argc, void *data, void *user_data) { \
return static_cast<OSC*>(user_data)->cb_ ## name (path, types, argv, argc, data); \
} \
- int cb_ ## name (const char *path, const char *types, lo_arg **argv, int argc, void *data) { \
+ int cb_ ## name (const char *, const char *, lo_arg **, int, void *) { \
name (); \
return 0; \
}
@@ -133,7 +133,7 @@ class OSC : public ARDOUR::ControlProtocol
static int _ ## name (const char *path, const char *types, lo_arg **argv, int argc, void *data, void *user_data) { \
return static_cast<OSC*>(user_data)->cb_ ## name (path, types, argv, argc, data); \
} \
- int cb_ ## name (const char *path, const char *types, lo_arg **argv, int argc, void *data) { \
+ int cb_ ## name (const char *, const char *, lo_arg **argv, int argc, void *) { \
if (argc > 0) { \
name (optional argv[0]->type); \
} \
@@ -147,7 +147,7 @@ class OSC : public ARDOUR::ControlProtocol
static int _ ## name (const char *path, const char *types, lo_arg **argv, int argc, void *data, void *user_data) { \
return static_cast<OSC*>(user_data)->cb_ ## name (path, types, argv, argc, data); \
} \
- int cb_ ## name (const char *path, const char *types, lo_arg **argv, int argc, void *data) { \
+ int cb_ ## name (const char *, const char *, lo_arg **argv, int argc, void *) { \
if (argc > 1) { \
name (argv[0]->arg1type, argv[1]->arg2type); \
} \
diff --git a/libs/surfaces/osc/osc_controllable.cc b/libs/surfaces/osc/osc_controllable.cc
index 9851daeb7e..3d3fefcac1 100644
--- a/libs/surfaces/osc/osc_controllable.cc
+++ b/libs/surfaces/osc/osc_controllable.cc
@@ -51,7 +51,7 @@ OSCControllable::get_state ()
}
int
-OSCControllable::set_state (const XMLNode& node)
+OSCControllable::set_state (const XMLNode& /*node*/)
{
return 0;
}
diff --git a/libs/surfaces/powermate/interface.cc b/libs/surfaces/powermate/interface.cc
index 6012c064d8..02ddf97722 100644
--- a/libs/surfaces/powermate/interface.cc
+++ b/libs/surfaces/powermate/interface.cc
@@ -10,7 +10,7 @@
using namespace ARDOUR;
ControlProtocol*
-new_powermate_protocol (ControlProtocolDescriptor* descriptor, Session* s)
+new_powermate_protocol (ControlProtocolDescriptor* /*descriptor*/, Session* s)
{
PowermateControlProtocol* pcp = new PowermateControlProtocol (*s);
@@ -24,13 +24,13 @@ new_powermate_protocol (ControlProtocolDescriptor* descriptor, Session* s)
}
void
-delete_powermate_protocol (ControlProtocolDescriptor* descriptor, ControlProtocol* cp)
+delete_powermate_protocol (ControlProtocolDescriptor* /*descriptor*/, ControlProtocol* cp)
{
delete cp;
}
bool
-probe_powermate_protocol (ControlProtocolDescriptor* descriptor)
+probe_powermate_protocol (ControlProtocolDescriptor* /*descriptor*/)
{
return PowermateControlProtocol::probe ();
}
diff --git a/libs/surfaces/powermate/powermate.cc b/libs/surfaces/powermate/powermate.cc
index 6f3cf15456..96baf749b3 100644
--- a/libs/surfaces/powermate/powermate.cc
+++ b/libs/surfaces/powermate/powermate.cc
@@ -145,7 +145,7 @@ PowermateControlProtocol::get_state ()
}
int
-PowermateControlProtocol::set_state (const XMLNode& node)
+PowermateControlProtocol::set_state (const XMLNode& /*node*/)
{
return 0;
}
diff --git a/libs/vamp-plugins/AmplitudeFollower.cpp b/libs/vamp-plugins/AmplitudeFollower.cpp
index 7023297d33..c6f7bc0938 100644
--- a/libs/vamp-plugins/AmplitudeFollower.cpp
+++ b/libs/vamp-plugins/AmplitudeFollower.cpp
@@ -198,7 +198,7 @@ float AmplitudeFollower::getParameter(std::string paramid) const
AmplitudeFollower::FeatureSet
AmplitudeFollower::process(const float *const *inputBuffers,
- Vamp::RealTime timestamp)
+ Vamp::RealTime /*timestamp*/)
{
if (m_stepSize == 0) {
cerr << "ERROR: AmplitudeFollower::process: "
diff --git a/libs/vamp-sdk/src/vamp-sdk/PluginAdapter.cpp b/libs/vamp-sdk/src/vamp-sdk/PluginAdapter.cpp
index 2c91e40d94..f8d4bf2d28 100644
--- a/libs/vamp-sdk/src/vamp-sdk/PluginAdapter.cpp
+++ b/libs/vamp-sdk/src/vamp-sdk/PluginAdapter.cpp
@@ -583,7 +583,7 @@ PluginAdapterBase::Impl::vampGetRemainingFeatures(VampPluginHandle handle)
}
void
-PluginAdapterBase::Impl::vampReleaseFeatureSet(VampFeatureList *fs)
+PluginAdapterBase::Impl::vampReleaseFeatureSet(VampFeatureList */*fs*/)
{
#ifdef DEBUG_PLUGIN_ADAPTER
std::cerr << "PluginAdapterBase::Impl::vampReleaseFeatureSet" << std::endl;