From: Wouter V. <m97...@us...> - 2004-06-18 21:35:47
|
Update of /cvsroot/openmsx/openMSX/src/events In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11080/src/events Modified Files: AfterCommand.cc CliCommInput.cc CliCommOutput.cc EventDistributor.cc HotKey.cc SDLEventInserter.cc Log Message: Compiled with -Wall -W and fixed all warnings Index: AfterCommand.cc =================================================================== RCS file: /cvsroot/openmsx/openMSX/src/events/AfterCommand.cc,v retrieving revision 1.12 retrieving revision 1.13 diff -u -d -r1.12 -r1.13 --- AfterCommand.cc 29 May 2004 18:15:49 -0000 1.12 +++ AfterCommand.cc 18 Jun 2004 21:34:51 -0000 1.13 @@ -129,7 +129,7 @@ return cmd->getId(); } -string AfterCommand::afterInfo(const vector<string>& tokens) +string AfterCommand::afterInfo(const vector<string>& /*tokens*/) { string result; for (AfterCmdMap::const_iterator it = afterCmds.begin(); @@ -162,7 +162,7 @@ return ""; } -string AfterCommand::help(const vector<string>& tokens) const +string AfterCommand::help(const vector<string>& /*tokens*/) const { return "after time <seconds> <command> execute a command after some time\n" "after idle <seconds> <command> execute a command after some time being idle\n" @@ -172,7 +172,7 @@ "after cancel <id> cancel the postponed command with given id\n"; } -void AfterCommand::tabCompletion(vector<string>& tokens) const +void AfterCommand::tabCompletion(vector<string>& /*tokens*/) const { // TODO } @@ -277,7 +277,8 @@ Scheduler::instance().setSyncPoint(t, this); } -void AfterCommand::AfterTimedCmd::executeUntil(const EmuTime& time, int userData) +void AfterCommand::AfterTimedCmd::executeUntil(const EmuTime& /*time*/, + int /*userData*/) { execute(); } Index: CliCommInput.cc =================================================================== RCS file: /cvsroot/openmsx/openMSX/src/events/CliCommInput.cc,v retrieving revision 1.13 retrieving revision 1.14 diff -u -d -r1.13 -r1.14 --- CliCommInput.cc 29 May 2004 18:15:49 -0000 1.13 +++ CliCommInput.cc 18 Jun 2004 21:34:51 -0000 1.14 @@ -35,7 +35,7 @@ } void CliCommInput::cb_start_element(ParseState* user_data, - const xmlChar* name, const xmlChar** attrs) + const xmlChar* name, const xmlChar** /*attrs*/) { if (user_data->unknownLevel) { ++(user_data->unknownLevel); @@ -63,7 +63,7 @@ user_data->content = ""; // clear() doesn't compile on gcc-2.95 } -void CliCommInput::cb_end_element(ParseState* user_data, const xmlChar* name) +void CliCommInput::cb_end_element(ParseState* user_data, const xmlChar* /*name*/) { if (user_data->unknownLevel) { --(user_data->unknownLevel); @@ -160,7 +160,7 @@ Scheduler::instance().setAsyncPoint(this); } -void CliCommInput::executeUntil(const EmuTime& time, int userData) +void CliCommInput::executeUntil(const EmuTime& /*time*/, int /*userData*/) { CommandController& controller = CommandController::instance(); lock.down(); Index: CliCommOutput.cc =================================================================== RCS file: /cvsroot/openmsx/openMSX/src/events/CliCommOutput.cc,v retrieving revision 1.12 retrieving revision 1.13 diff -u -d -r1.12 -r1.13 --- CliCommOutput.cc 29 May 2004 15:53:05 -0000 1.12 +++ CliCommOutput.cc 18 Jun 2004 21:34:51 -0000 1.13 @@ -128,7 +128,7 @@ return ""; } -string CliCommOutput::UpdateCmd::help(const vector<string>& tokens) const +string CliCommOutput::UpdateCmd::help(const vector<string>& /*tokens*/) const { static const string helpText = "TODO"; return helpText; Index: EventDistributor.cc =================================================================== RCS file: /cvsroot/openmsx/openMSX/src/events/EventDistributor.cc,v retrieving revision 1.38 retrieving revision 1.39 diff -u -d -r1.38 -r1.39 --- EventDistributor.cc 29 May 2004 18:15:49 -0000 1.38 +++ EventDistributor.cc 18 Jun 2004 21:35:07 -0000 1.39 @@ -111,7 +111,7 @@ prevEmu = emuTime; } -void EventDistributor::executeUntil(const EmuTime& time, int userData) +void EventDistributor::executeUntil(const EmuTime& /*time*/, int /*userData*/) { Event* event = scheduledEvents.front(); scheduledEvents.pop_front(); Index: HotKey.cc =================================================================== RCS file: /cvsroot/openmsx/openMSX/src/events/HotKey.cc,v retrieving revision 1.37 retrieving revision 1.38 diff -u -d -r1.37 -r1.38 --- HotKey.cc 29 May 2004 18:15:49 -0000 1.37 +++ HotKey.cc 18 Jun 2004 21:35:07 -0000 1.38 @@ -109,7 +109,7 @@ return command; } -void HotKey::HotKeyCmd::signalHotKey(Keys::KeyCode key) +void HotKey::HotKeyCmd::signalHotKey(Keys::KeyCode /*key*/) { try { // ignore return value @@ -173,7 +173,7 @@ } return result; } -string HotKey::BindCmd::help(const vector<string>& tokens) const +string HotKey::BindCmd::help(const vector<string>& /*tokens*/) const { return "bind : show all bounded keys\n" "bind <key> : show binding for this key\n" @@ -206,7 +206,7 @@ } return result; } -string HotKey::UnbindCmd::help(const vector<string>& tokens) const +string HotKey::UnbindCmd::help(const vector<string>& /*tokens*/) const { return "unbind <key> : unbind this key\n"; } Index: SDLEventInserter.cc =================================================================== RCS file: /cvsroot/openmsx/openMSX/src/events/SDLEventInserter.cc,v retrieving revision 1.7 retrieving revision 1.8 diff -u -d -r1.7 -r1.8 --- SDLEventInserter.cc 29 May 2004 18:15:49 -0000 1.7 +++ SDLEventInserter.cc 18 Jun 2004 21:35:07 -0000 1.8 @@ -15,7 +15,7 @@ { } -void SDLEventInserter::executeUntil(const EmuTime& time, int userData) +void SDLEventInserter::executeUntil(const EmuTime& /*time*/, int /*userData*/) { SDL_PushEvent(&event); delete this; // job is done |