fix a variety of unused argument errors noted by gcc 4.3.2 on x86

git-svn-id: svn://localhost/ardour2/branches/3.0@7733 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Paul Davis 2010-09-02 17:01:36 +00:00
parent beb9c71113
commit 98d994f29c
31 changed files with 44 additions and 47 deletions

View file

@ -518,7 +518,7 @@ ARDOUR_UI::auditioning_changed (bool onoff)
} }
bool bool
ARDOUR_UI::audition_alert_press (GdkEventButton* ev) ARDOUR_UI::audition_alert_press (GdkEventButton*)
{ {
if (_session) { if (_session) {
_session->cancel_audition(); _session->cancel_audition();
@ -527,7 +527,7 @@ ARDOUR_UI::audition_alert_press (GdkEventButton* ev)
} }
bool bool
ARDOUR_UI::solo_alert_press (GdkEventButton* ev) ARDOUR_UI::solo_alert_press (GdkEventButton*)
{ {
if (_session) { if (_session) {
if (_session->soloing()) { if (_session->soloing()) {

View file

@ -629,7 +629,7 @@ ARDOUR_UI::float_big_clock (Gtk::Window* parent)
} }
void void
ARDOUR_UI::big_clock_size_allocate (Gtk::Allocation& allocation) ARDOUR_UI::big_clock_size_allocate (Gtk::Allocation&)
{ {
if (!big_clock_resize_in_progress) { if (!big_clock_resize_in_progress) {
Glib::signal_idle().connect (sigc::bind (sigc::mem_fun (*this, &ARDOUR_UI::idle_big_clock_text_resizer), 0, 0)); Glib::signal_idle().connect (sigc::bind (sigc::mem_fun (*this, &ARDOUR_UI::idle_big_clock_text_resizer), 0, 0));
@ -638,7 +638,7 @@ ARDOUR_UI::big_clock_size_allocate (Gtk::Allocation& allocation)
} }
bool bool
ARDOUR_UI::idle_big_clock_text_resizer (int win_w, int win_h) ARDOUR_UI::idle_big_clock_text_resizer (int, int)
{ {
big_clock_resize_in_progress = false; big_clock_resize_in_progress = false;

View file

@ -1463,7 +1463,7 @@ AudioRegionView::transients_changed ()
} }
void void
AudioRegionView::update_transient(float old_pos, float new_pos) AudioRegionView::update_transient(float /*old_pos*/, float new_pos)
{ {
/* Find frame at old pos, calulate new frame then update region transients*/ /* Find frame at old pos, calulate new frame then update region transients*/
list<std::pair<nframes64_t, ArdourCanvas::SimpleLine*> >::iterator l; list<std::pair<nframes64_t, ArdourCanvas::SimpleLine*> >::iterator l;

View file

@ -4208,10 +4208,8 @@ Editor::control_layout_scroll (GdkEventScroll* ev)
} }
void void
Editor::session_state_saved (string snap_name) Editor::session_state_saved (string)
{ {
ENSURE_GUI_THREAD (*this, &Editor::session_state_saved, snap_name);
update_title (); update_title ();
_snapshots->redisplay (); _snapshots->redisplay ();
} }

View file

@ -901,7 +901,7 @@ Editor::canvas_region_view_name_event (GdkEvent *event, ArdourCanvas::Item* item
} }
bool bool
Editor::canvas_feature_line_event (GdkEvent *event, ArdourCanvas::Item* item, RegionView *rv) Editor::canvas_feature_line_event (GdkEvent *event, ArdourCanvas::Item* item, RegionView*)
{ {
bool ret = false; bool ret = false;

View file

@ -174,7 +174,7 @@ Editor::select_all_tracks ()
* tracks, in which case nothing will happen unless `force' is true. * tracks, in which case nothing will happen unless `force' is true.
*/ */
void void
Editor::set_selected_track_as_side_effect (Selection::Operation op, bool force) Editor::set_selected_track_as_side_effect (Selection::Operation op, bool /*force*/)
{ {
if (!clicked_axisview) { if (!clicked_axisview) {
return; return;

View file

@ -94,7 +94,7 @@ Editor::draw_metric_marks (const Metrics& metrics)
} }
void void
Editor::tempo_map_changed (const PropertyChange& ignored) Editor::tempo_map_changed (const PropertyChange& /*ignored*/)
{ {
if (!_session) { if (!_session) {
return; return;

View file

@ -523,7 +523,7 @@ piano_keyboard_expose(GtkWidget *widget, GdkEventExpose *event)
} }
static void static void
piano_keyboard_size_request(GtkWidget *widget, GtkRequisition *requisition) piano_keyboard_size_request(GtkWidget* widget, GtkRequisition *requisition)
{ {
requisition->width = PIANO_KEYBOARD_DEFAULT_WIDTH; requisition->width = PIANO_KEYBOARD_DEFAULT_WIDTH;
requisition->height = PIANO_KEYBOARD_DEFAULT_HEIGHT; requisition->height = PIANO_KEYBOARD_DEFAULT_HEIGHT;

View file

@ -377,7 +377,7 @@ RegionEditor::sync_offset_relative_clock_changed ()
} }
bool bool
RegionEditor::on_delete_event (GdkEventAny* ev) RegionEditor::on_delete_event (GdkEventAny*)
{ {
PropertyChange change; PropertyChange change;

View file

@ -87,7 +87,7 @@ RegionLayeringOrderEditor::~RegionLayeringOrderEditor ()
} }
void void
RegionLayeringOrderEditor::row_activated (const TreeModel::Path& path, TreeViewColumn* column) RegionLayeringOrderEditor::row_activated (const TreeModel::Path& path, TreeViewColumn*)
{ {
if (in_row_change) { if (in_row_change) {
return; return;

View file

@ -79,7 +79,7 @@ ReturnUI::~ReturnUI ()
} }
void void
ReturnUI::ins_changed (IOChange change, void* ignored) ReturnUI::ins_changed (IOChange change, void* /*ignored*/)
{ {
ENSURE_GUI_THREAD (*this, &ReturnUI::ins_changed, change, ignored) ENSURE_GUI_THREAD (*this, &ReturnUI::ins_changed, change, ignored)
if (change.type & IOChange::ConfigurationChanged) { if (change.type & IOChange::ConfigurationChanged) {

View file

@ -212,7 +212,7 @@ RhythmFerret::run_analysis ()
} }
int int
RhythmFerret::run_percussion_onset_analysis (boost::shared_ptr<Readable> readable, nframes64_t offset, AnalysisFeatureList& results) RhythmFerret::run_percussion_onset_analysis (boost::shared_ptr<Readable> readable, nframes64_t /*offset*/, AnalysisFeatureList& results)
{ {
TransientDetector t (_session->frame_rate()); TransientDetector t (_session->frame_rate());
@ -265,7 +265,7 @@ RhythmFerret::get_note_onset_function ()
} }
int int
RhythmFerret::run_note_onset_analysis (boost::shared_ptr<Readable> readable, nframes64_t offset, AnalysisFeatureList& results) RhythmFerret::run_note_onset_analysis (boost::shared_ptr<Readable> readable, nframes64_t /*offset*/, AnalysisFeatureList& results)
{ {
try { try {
OnsetDetector t (_session->frame_rate()); OnsetDetector t (_session->frame_rate());

View file

@ -488,9 +488,8 @@ RouteParams_UI::route_selected()
} }
void void
RouteParams_UI::processors_changed (RouteProcessorChange c) RouteParams_UI::processors_changed (RouteProcessorChange)
{ {
ENSURE_GUI_THREAD (*this, &RouteParams_UI::processors_changed, c)
cleanup_view(); cleanup_view();
_processor.reset ((Processor*) 0); _processor.reset ((Processor*) 0);

View file

@ -1204,7 +1204,7 @@ RouteUI::solo_isolate_button_release (GdkEventButton* ev)
} }
bool bool
RouteUI::solo_safe_button_release (GdkEventButton* ev) RouteUI::solo_safe_button_release (GdkEventButton*)
{ {
_route->set_solo_safe (!(solo_safe_led->visual_state() > 0), this); _route->set_solo_safe (!(solo_safe_led->visual_state() > 0), this);
return true; return true;

View file

@ -89,7 +89,7 @@ SendUI::~SendUI ()
} }
void void
SendUI::ins_changed (IOChange change, void* ignored) SendUI::ins_changed (IOChange change, void* /*ignored*/)
{ {
ENSURE_GUI_THREAD (*this, &SendUI::ins_changed, change, ignored) ENSURE_GUI_THREAD (*this, &SendUI::ins_changed, change, ignored)
if (change.type & IOChange::ConfigurationChanged) { if (change.type & IOChange::ConfigurationChanged) {
@ -98,7 +98,7 @@ SendUI::ins_changed (IOChange change, void* ignored)
} }
void void
SendUI::outs_changed (IOChange change, void* ignored) SendUI::outs_changed (IOChange change, void* /*ignored*/)
{ {
ENSURE_GUI_THREAD (*this, &SendUI::outs_changed, change, ignored) ENSURE_GUI_THREAD (*this, &SendUI::outs_changed, change, ignored)
if (change.type & IOChange::ConfigurationChanged) { if (change.type & IOChange::ConfigurationChanged) {

View file

@ -621,7 +621,7 @@ ArdourStartup::populate_session_templates ()
} }
static bool static bool
lost_name_entry_focus (GdkEventFocus* ev) lost_name_entry_focus (GdkEventFocus*)
{ {
cerr << "lost focus\n"; cerr << "lost focus\n";
return false; return false;

View file

@ -45,13 +45,13 @@ using namespace PBD;
using namespace ARDOUR; using namespace ARDOUR;
static void static void
_note_off_event_handler (GtkWidget* widget, int note, gpointer arg) _note_off_event_handler (GtkWidget* /*widget*/, int note, gpointer arg)
{ {
((StepEntry*)arg)->note_off_event_handler (note); ((StepEntry*)arg)->note_off_event_handler (note);
} }
static void static void
_rest_event_handler (GtkWidget* widget, gpointer arg) _rest_event_handler (GtkWidget* /*widget*/, gpointer arg)
{ {
((StepEntry*)arg)->rest_event_handler (); ((StepEntry*)arg)->rest_event_handler ();
} }

View file

@ -69,7 +69,7 @@ class Processor : public SessionObject, public Automatable, public Latent
/** @param result_required true if, on return from this method, bufs is required to contain valid data; /** @param result_required true if, on return from this method, bufs is required to contain valid data;
* if false, the method need not bother writing to bufs if it doesn't want to. * if false, the method need not bother writing to bufs if it doesn't want to.
*/ */
virtual void run (BufferSet& /*bufs*/, framepos_t /*start_frame*/, framepos_t /*end_frame*/, nframes_t /*nframes*/, bool result_required) {} virtual void run (BufferSet& /*bufs*/, framepos_t /*start_frame*/, framepos_t /*end_frame*/, nframes_t /*nframes*/, bool /*result_required*/) {}
virtual void silence (nframes_t /*nframes*/) {} virtual void silence (nframes_t /*nframes*/) {}
virtual void activate () { _pending_active = true; ActiveChanged(); } virtual void activate () { _pending_active = true; ActiveChanged(); }

View file

@ -247,16 +247,16 @@ class Region
virtual int exportme (ARDOUR::Session&, ARDOUR::ExportSpecification&) = 0; virtual int exportme (ARDOUR::Session&, ARDOUR::ExportSpecification&) = 0;
virtual void add_transient (nframes64_t where) { virtual void add_transient (nframes64_t) {
// no transients, but its OK // no transients, but its OK
} }
virtual int update_transient (nframes64_t old_position, nframes64_t new_position) { virtual int update_transient (nframes64_t /* old_position */, nframes64_t /* new_position */) {
// no transients, but its OK // no transients, but its OK
return 0; return 0;
} }
virtual void remove_transient (nframes64_t where) { virtual void remove_transient (nframes64_t /* where */) {
// no transients, but its OK // no transients, but its OK
} }
@ -271,7 +271,7 @@ class Region
return 0; return 0;
} }
virtual int adjust_transients (nframes64_t delta) { virtual int adjust_transients (nframes64_t /*delta*/) {
// no transients, but its OK // no transients, but its OK
return 0; return 0;
} }

View file

@ -416,7 +416,7 @@ AudioEngine::split_cycle (nframes_t offset)
} }
void void
AudioEngine::finish_process_cycle (int status) AudioEngine::finish_process_cycle (int /* status*/ )
{ {
GET_PRIVATE_JACK_POINTER(_jack); GET_PRIVATE_JACK_POINTER(_jack);
jack_cycle_signal (_jack, 0); jack_cycle_signal (_jack, 0);

View file

@ -244,8 +244,8 @@ static Glib::ustring
compose_status_message (const string& path, compose_status_message (const string& path,
uint file_samplerate, uint file_samplerate,
uint session_samplerate, uint session_samplerate,
uint current_file, uint /* current_file */,
uint total_files) uint /* total_files */)
{ {
if (file_samplerate != session_samplerate) { if (file_samplerate != session_samplerate) {
return string_compose (_("Resampling %1 from %2kHz to %3kHz"), return string_compose (_("Resampling %1 from %2kHz to %3kHz"),

View file

@ -605,7 +605,7 @@ MidiTrack::set_midi_thru (bool yn)
} }
boost::shared_ptr<SMFSource> boost::shared_ptr<SMFSource>
MidiTrack::write_source (uint32_t n) MidiTrack::write_source (uint32_t)
{ {
return midi_diskstream()->write_source (); return midi_diskstream()->write_source ();
} }

View file

@ -36,7 +36,7 @@ static bool sort_ports_by_name (Port* a, Port* b)
Glib::ustring bname (b->name()); Glib::ustring bname (b->name());
Glib::ustring::size_type last_digit_position_a = aname.size(); Glib::ustring::size_type last_digit_position_a = aname.size();
Glib::ustring::const_reverse_iterator r_iterator = aname.rbegin(); Glib::ustring::reverse_iterator r_iterator = aname.rbegin();
while (r_iterator!= aname.rend() && Glib::Unicode::isdigit(*r_iterator)) { while (r_iterator!= aname.rend() && Glib::Unicode::isdigit(*r_iterator)) {
r_iterator++; r_iterator++;

View file

@ -835,7 +835,7 @@ Region::modify_front (nframes_t new_position, bool reset_fade, void *src)
} }
void void
Region::modify_end (nframes_t new_endpoint, bool reset_fade, void *src) Region::modify_end (nframes_t new_endpoint, bool reset_fade, void* /*src*/)
{ {
if (locked()) { if (locked()) {
return; return;
@ -1217,7 +1217,7 @@ Region::set_state (const XMLNode& node, int version)
} }
int int
Region::_set_state (const XMLNode& node, int version, PropertyChange& what_changed, bool send) Region::_set_state (const XMLNode& node, int /*version*/, PropertyChange& what_changed, bool send)
{ {
const XMLProperty* prop; const XMLProperty* prop;

View file

@ -334,7 +334,7 @@ RouteGroup::set_edit (bool yn)
} }
void void
RouteGroup::set_active (bool yn, void *src) RouteGroup::set_active (bool yn, void* /*src*/)
{ {
if (is_active() == yn) { if (is_active() == yn) {
return; return;
@ -347,7 +347,7 @@ RouteGroup::set_active (bool yn, void *src)
} }
void void
RouteGroup::set_relative (bool yn, void *src) RouteGroup::set_relative (bool yn, void* /*src*/)
{ {
if (is_relative() == yn) { if (is_relative() == yn) {
return; return;
@ -357,7 +357,7 @@ RouteGroup::set_relative (bool yn, void *src)
} }
void void
RouteGroup::set_hidden (bool yn, void *src) RouteGroup::set_hidden (bool yn, void* /*src*/)
{ {
if (is_hidden() == yn) { if (is_hidden() == yn) {
return; return;

View file

@ -21,7 +21,7 @@ SampleFormatConverter<TOut>::SampleFormatConverter (ChannelCount channels) :
template <> template <>
void void
SampleFormatConverter<float>::init (nframes_t max_frames, int type, int data_width) SampleFormatConverter<float>::init (nframes_t max_frames, int /* type */, int data_width)
{ {
if (throw_level (ThrowObject) && data_width != 32) { if (throw_level (ThrowObject) && data_width != 32) {
throw Exception (*this, "Unsupported data width"); throw Exception (*this, "Unsupported data width");

View file

@ -254,7 +254,7 @@ protected:
mutable Glib::RWLock _lock; mutable Glib::RWLock _lock;
bool _writing; bool _writing;
virtual int resolve_overlaps_unlocked (const NotePtr, void* arg = 0) { virtual int resolve_overlaps_unlocked (const NotePtr, void* /* arg */ = 0) {
return 0; return 0;
} }

View file

@ -817,7 +817,7 @@ Sequence<Time>::append_note_off_unlocked (NotePtr note)
template<typename Time> template<typename Time>
void void
Sequence<Time>::append_control_unlocked(const Parameter& param, Time time, double value, event_id_t evid) Sequence<Time>::append_control_unlocked(const Parameter& param, Time time, double value, event_id_t /* evid */)
{ {
DEBUG_TRACE (DEBUG::Sequence, string_compose ("%1 %2 @ %3\t=\t%4 # controls: %5\n", DEBUG_TRACE (DEBUG::Sequence, string_compose ("%1 %2 @ %3\t=\t%4 # controls: %5\n",
this, _type_map.to_symbol(param), time, value, _controls.size())); this, _type_map.to_symbol(param), time, value, _controls.size()));
@ -828,7 +828,7 @@ Sequence<Time>::append_control_unlocked(const Parameter& param, Time time, doubl
template<typename Time> template<typename Time>
void void
Sequence<Time>::append_sysex_unlocked(const MIDIEvent<Time>& ev, event_id_t evid) Sequence<Time>::append_sysex_unlocked(const MIDIEvent<Time>& ev, event_id_t /* evid */)
{ {
#ifdef DEBUG_SEQUENCE #ifdef DEBUG_SEQUENCE
cerr << this << " SysEx @ " << ev.time() << " \t= \t [ " << hex; cerr << this << " SysEx @ " << ev.time() << " \t= \t [ " << hex;

View file

@ -55,7 +55,7 @@ MIDIAction::get_state ()
} }
int int
MIDIAction::set_state (const XMLNode& node, int version) MIDIAction::set_state (const XMLNode& /*node*/, int /*version*/)
{ {
return 0; return 0;
} }

View file

@ -178,7 +178,7 @@ MIDIControllable::midi_sense_note_off (Parser &p, EventTwoBytes *tb)
} }
void void
MIDIControllable::midi_sense_note (Parser &, EventTwoBytes *msg, bool is_on) MIDIControllable::midi_sense_note (Parser &, EventTwoBytes *msg, bool /*is_on*/)
{ {
if (!controllable) { if (!controllable) {
return; return;

View file

@ -120,7 +120,7 @@ MIDIFunction::get_state ()
} }
int int
MIDIFunction::set_state (const XMLNode& node, int version) MIDIFunction::set_state (const XMLNode& /*node*/, int /*version*/)
{ {
return 0; return 0;
} }