Fix unused parameter warnings since GCC apparently doesn't feel like listening to -Wno-unused-parameter

git-svn-id: svn://localhost/ardour2/branches/3.0@5835 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
David Robillard 2009-10-21 00:15:42 +00:00
parent af8c16cfe0
commit bc56eb8bd7
33 changed files with 172 additions and 172 deletions

View file

@ -2228,7 +2228,7 @@ Editor::set_edit_point_preference (EditPoint ep, bool force)
} }
int int
Editor::set_state (const XMLNode& node, int version) Editor::set_state (const XMLNode& node, int /*version*/)
{ {
const XMLProperty* prop; const XMLProperty* prop;
XMLNode* geometry; XMLNode* geometry;

View file

@ -158,7 +158,7 @@ Keyboard::get_state (void)
} }
int int
Keyboard::set_state (const XMLNode& node, int version) Keyboard::set_state (const XMLNode& node, int /*version*/)
{ {
const XMLProperty* prop; const XMLProperty* prop;

View file

@ -1001,7 +1001,7 @@ TimeAxisView::get_state ()
} }
int int
TimeAxisView::set_state (const XMLNode& node, int version) TimeAxisView::set_state (const XMLNode& node, int /*version*/)
{ {
const XMLProperty *prop; const XMLProperty *prop;

View file

@ -221,7 +221,7 @@ UIConfiguration::get_variables (std::string which_node)
} }
int int
UIConfiguration::set_state (const XMLNode& root, int version) UIConfiguration::set_state (const XMLNode& root, int /*version*/)
{ {
if (root.name() != "Ardour") { if (root.name() != "Ardour") {
return -1; return -1;

View file

@ -1768,7 +1768,7 @@ AudioDiskstream::get_state ()
} }
int int
AudioDiskstream::set_state (const XMLNode& node, int version) AudioDiskstream::set_state (const XMLNode& node, int /*version*/)
{ {
const XMLProperty* prop; const XMLProperty* prop;
XMLNodeList nlist = node.children(); XMLNodeList nlist = node.children();

View file

@ -56,7 +56,7 @@ AudioTrack::AudioTrack (Session& sess, string name, Route::Flag flag, TrackMode
use_new_diskstream (); use_new_diskstream ();
} }
AudioTrack::AudioTrack (Session& sess, const XMLNode& node, int version) AudioTrack::AudioTrack (Session& sess, const XMLNode& node, int /*version*/)
: Track (sess, node) : Track (sess, node)
{ {
_set_state (node, Stateful::loading_state_version, false); _set_state (node, Stateful::loading_state_version, false);

View file

@ -118,7 +118,7 @@ AudioSource::get_state ()
} }
int int
AudioSource::set_state (const XMLNode& node, int version) AudioSource::set_state (const XMLNode& node, int /*version*/)
{ {
const XMLProperty* prop; const XMLProperty* prop;

View file

@ -288,7 +288,7 @@ ControlProtocolManager::cpi_by_name (string name)
} }
int int
ControlProtocolManager::set_state (const XMLNode& node, int version) ControlProtocolManager::set_state (const XMLNode& node, int /*version*/)
{ {
XMLNodeList clist; XMLNodeList clist;
XMLNodeConstIterator citer; XMLNodeConstIterator citer;

View file

@ -720,7 +720,7 @@ Crossfade::get_state ()
} }
int int
Crossfade::set_state (const XMLNode& node, int version) Crossfade::set_state (const XMLNode& node, int /*version*/)
{ {
XMLNodeConstIterator i; XMLNodeConstIterator i;
XMLNodeList children; XMLNodeList children;

View file

@ -104,7 +104,7 @@ FileSource::init (const ustring& pathstr, bool must_exist)
} }
int int
FileSource::set_state (const XMLNode& node, int version) FileSource::set_state (const XMLNode& node, int /*version*/)
{ {
const XMLProperty* prop; const XMLProperty* prop;

View file

@ -739,7 +739,7 @@ IO::find_possible_bundle (const string &desired_name)
} }
int int
IO::get_port_counts_2X (XMLNode const & node, int version, ChanCount& n, boost::shared_ptr<Bundle>& c) IO::get_port_counts_2X (XMLNode const & node, int /*version*/, ChanCount& n, boost::shared_ptr<Bundle>& /*c*/)
{ {
XMLProperty const * prop; XMLProperty const * prop;
XMLNodeList children = node.children (); XMLNodeList children = node.children ();
@ -892,7 +892,7 @@ IO::make_connections (const XMLNode& node, int version, bool in)
int int
IO::make_connections_2X (const XMLNode& node, int version, bool in) IO::make_connections_2X (const XMLNode& node, int /*version*/, bool in)
{ {
const XMLProperty* prop; const XMLProperty* prop;

View file

@ -347,7 +347,7 @@ Location::get_state (void)
} }
int int
Location::set_state (const XMLNode& node, int version) Location::set_state (const XMLNode& node, int /*version*/)
{ {
const XMLProperty *prop; const XMLProperty *prop;
@ -674,7 +674,7 @@ Locations::get_state ()
} }
int int
Locations::set_state (const XMLNode& node, int version) Locations::set_state (const XMLNode& node, int /*version*/)
{ {
XMLNodeList nlist; XMLNodeList nlist;
XMLNodeConstIterator niter; XMLNodeConstIterator niter;

View file

@ -354,7 +354,7 @@ LV2Plugin::has_editor() const
} }
int int
LV2Plugin::set_state(const XMLNode& node, int version) LV2Plugin::set_state(const XMLNode& node, int /*version*/)
{ {
XMLNodeList nodes; XMLNodeList nodes;
XMLProperty *prop; XMLProperty *prop;

View file

@ -1232,7 +1232,7 @@ MidiDiskstream::get_state ()
} }
int int
MidiDiskstream::set_state (const XMLNode& node, int version) MidiDiskstream::set_state (const XMLNode& node, int /*version*/)
{ {
const XMLProperty* prop; const XMLProperty* prop;
XMLNodeList nlist = node.children(); XMLNodeList nlist = node.children();

View file

@ -260,7 +260,7 @@ MidiModel::DeltaCommand::unmarshal_note(XMLNode *xml_note)
#define DELTA_COMMAND_ELEMENT "DeltaCommand" #define DELTA_COMMAND_ELEMENT "DeltaCommand"
int int
MidiModel::DeltaCommand::set_state (const XMLNode& delta_command, int version) MidiModel::DeltaCommand::set_state (const XMLNode& delta_command, int /*version*/)
{ {
if (delta_command.name() != string(DELTA_COMMAND_ELEMENT)) { if (delta_command.name() != string(DELTA_COMMAND_ELEMENT)) {
return 1; return 1;
@ -646,7 +646,7 @@ MidiModel::DiffCommand::unmarshal_change(XMLNode *xml_change)
} }
int int
MidiModel::DiffCommand::set_state(const XMLNode& diff_command, int version) MidiModel::DiffCommand::set_state(const XMLNode& diff_command, int /*version*/)
{ {
if (diff_command.name() != string(DIFF_COMMAND_ELEMENT)) { if (diff_command.name() != string(DIFF_COMMAND_ELEMENT)) {
return 1; return 1;

View file

@ -95,7 +95,7 @@ MidiSource::get_state ()
} }
int int
MidiSource::set_state (const XMLNode& node, int version) MidiSource::set_state (const XMLNode& node, int /*version*/)
{ {
const XMLProperty* prop; const XMLProperty* prop;

View file

@ -66,7 +66,7 @@ MidiTrack::MidiTrack (Session& sess, string name, Route::Flag flag, TrackMode mo
_mode = mode; _mode = mode;
} }
MidiTrack::MidiTrack (Session& sess, const XMLNode& node, int version) MidiTrack::MidiTrack (Session& sess, const XMLNode& node, int /*version*/)
: Track (sess, node, DataType::MIDI) : Track (sess, node, DataType::MIDI)
, _immediate_events(1024) // FIXME: size? , _immediate_events(1024) // FIXME: size?
, _step_edit_ring_buffer(64) // FIXME: size? , _step_edit_ring_buffer(64) // FIXME: size?

View file

@ -103,7 +103,7 @@ MuteMaster::get_value () const
} }
int int
MuteMaster::set_state (const XMLNode& node, int version) MuteMaster::set_state (const XMLNode& node, int /*version*/)
{ {
const XMLProperty* prop; const XMLProperty* prop;

View file

@ -172,7 +172,7 @@ StreamPanner::set_position (float xpos, float ypos, float zpos, bool link_call)
} }
int int
StreamPanner::set_state (const XMLNode& node, int version) StreamPanner::set_state (const XMLNode& node, int /*version*/)
{ {
const XMLProperty* prop; const XMLProperty* prop;
XMLNodeConstIterator iter; XMLNodeConstIterator iter;
@ -730,7 +730,7 @@ Multi2dPanner::state (bool /*full_state*/)
} }
int int
Multi2dPanner::set_state (const XMLNode& node, int version) Multi2dPanner::set_state (const XMLNode& node, int /*version*/)
{ {
const XMLProperty* prop; const XMLProperty* prop;
float newx,newy; float newx,newy;

View file

@ -145,7 +145,7 @@ Processor::state (bool full_state)
} }
int int
Processor::set_state_2X (const XMLNode & node, int version) Processor::set_state_2X (const XMLNode & node, int /*version*/)
{ {
XMLProperty const * prop; XMLProperty const * prop;

View file

@ -240,7 +240,7 @@ RCConfiguration::get_variables ()
} }
int int
RCConfiguration::set_state (const XMLNode& root, int version) RCConfiguration::set_state (const XMLNode& root, int /*version*/)
{ {
if (root.name() != "Ardour") { if (root.name() != "Ardour") {
return -1; return -1;

View file

@ -1174,7 +1174,7 @@ Region::get_state ()
} }
int int
Region::set_live_state (const XMLNode& node, int version, Change& what_changed, bool send) Region::set_live_state (const XMLNode& node, int /*version*/, Change& what_changed, bool send)
{ {
const XMLNodeList& nlist = node.children(); const XMLNodeList& nlist = node.children();
const XMLProperty *prop; const XMLProperty *prop;

View file

@ -161,7 +161,7 @@ RouteGroup::set_state (const XMLNode& node, int version)
} }
int int
RouteGroup::set_state_2X (const XMLNode& node, int version) RouteGroup::set_state_2X (const XMLNode& node, int /*version*/)
{ {
XMLProperty const * prop; XMLProperty const * prop;

View file

@ -170,7 +170,7 @@ Session::GlobalRouteStateCommand::GlobalRouteStateCommand (Session& s, const XML
} }
int int
Session::GlobalRouteStateCommand::set_state (const XMLNode& node, int version) Session::GlobalRouteStateCommand::set_state (const XMLNode& node, int /*version*/)
{ {
GlobalRouteBooleanState states; GlobalRouteBooleanState states;
XMLNodeList nlist; XMLNodeList nlist;
@ -483,7 +483,7 @@ Session::GlobalMeteringStateCommand::get_state()
} }
int int
Session::GlobalMeteringStateCommand::set_state (const XMLNode& node, int version) Session::GlobalMeteringStateCommand::set_state (const XMLNode& node, int /*version*/)
{ {
GlobalRouteBooleanState states; GlobalRouteBooleanState states;
XMLNodeList nlist; XMLNodeList nlist;

View file

@ -76,7 +76,7 @@ SessionConfiguration::get_variables ()
int int
SessionConfiguration::set_state (XMLNode const& root, int version) SessionConfiguration::set_state (XMLNode const& root, int /*version*/)
{ {
if (root.name() != "Ardour") { if (root.name() != "Ardour") {
return -1; return -1;

View file

@ -163,7 +163,7 @@ SessionMetadata::get_state ()
} }
int int
SessionMetadata::set_state (const XMLNode & state, int version) SessionMetadata::set_state (const XMLNode & state, int /*version*/)
{ {
const XMLNodeList & children = state.children(); const XMLNodeList & children = state.children();
ustring name; ustring name;

View file

@ -110,7 +110,7 @@ Source::get_state ()
} }
int int
Source::set_state (const XMLNode& node, int version) Source::set_state (const XMLNode& node, int /*version*/)
{ {
const XMLProperty* prop; const XMLProperty* prop;

View file

@ -1500,7 +1500,7 @@ TempoMap::get_state ()
} }
int int
TempoMap::set_state (const XMLNode& node, int version) TempoMap::set_state (const XMLNode& node, int /*version*/)
{ {
{ {
Glib::RWLock::WriterLock lm (lock); Glib::RWLock::WriterLock lm (lock);

View file

@ -24,7 +24,7 @@ ARDOUR::UserBundle::UserBundle (XMLNode const & node, bool i)
} }
int int
ARDOUR::UserBundle::set_state (XMLNode const & node, int version) ARDOUR::UserBundle::set_state (XMLNode const & node, int /*version*/)
{ {
XMLProperty const * name; XMLProperty const * name;

View file

@ -77,7 +77,7 @@ void initialize_primary_key_from_commands (PatchPrimaryKey& id, const XMLNode* n
int int
Patch::set_state (const XMLNode& node, int version) Patch::set_state (const XMLNode& node, int /*version*/)
{ {
assert(node.name() == "Patch"); assert(node.name() == "Patch");
_number = node.property("Number")->value(); _number = node.property("Number")->value();
@ -116,7 +116,7 @@ Note::get_state (void)
} }
int int
Note::set_state (const XMLNode& node, int version) Note::set_state (const XMLNode& node, int /*version*/)
{ {
assert(node.name() == "Note"); assert(node.name() == "Note");
_number = node.property("Number")->value(); _number = node.property("Number")->value();
@ -270,7 +270,7 @@ ChannelNameSet::set_state (const XMLNode& node, int version)
} }
int int
CustomDeviceMode::set_state(const XMLNode& a_node, int version) CustomDeviceMode::set_state(const XMLNode& a_node, int /*version*/)
{ {
assert(a_node.name() == "CustomDeviceMode"); assert(a_node.name() == "CustomDeviceMode");

View file

@ -105,7 +105,7 @@ Controllable::get_state ()
} }
int int
Controllable::set_state (const XMLNode& node, int version) Controllable::set_state (const XMLNode& node, int /*version*/)
{ {
const XMLProperty* prop = node.property (X_("id")); const XMLProperty* prop = node.property (X_("id"));

View file

@ -361,7 +361,7 @@ MIDIControllable::write_feedback (MIDI::byte* buf, int32_t& bufsize, bool /*forc
} }
int int
MIDIControllable::set_state (const XMLNode& node, int version) MIDIControllable::set_state (const XMLNode& node, int /*version*/)
{ {
const XMLProperty* prop; const XMLProperty* prop;
int xx; int xx;

View file

@ -806,7 +806,7 @@ XMLNode & MackieControlProtocol::get_state()
return *node; return *node;
} }
int MackieControlProtocol::set_state (const XMLNode & node, int version) int MackieControlProtocol::set_state (const XMLNode & node, int /*version*/)
{ {
#ifdef DEBUG #ifdef DEBUG
cout << "MackieControlProtocol::set_state: active " << _active << endl; cout << "MackieControlProtocol::set_state: active " << _active << endl;