summaryrefslogtreecommitdiff
path: root/libs/ardour/ardour
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/ardour/ardour
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/ardour/ardour')
-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
22 files changed, 50 insertions, 46 deletions
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,