summaryrefslogtreecommitdiff
path: root/cpp/demo
diff options
context:
space:
mode:
authorJose <jose@zeroc.com>2013-01-11 00:37:06 +0100
committerJose <jose@zeroc.com>2013-01-11 00:37:06 +0100
commit047677f816eb972a75213f3ed62dfc03368c2736 (patch)
tree93b55e4a0a749515d10b79a911929fef14154fb7 /cpp/demo
parentOS X installer relocation issues (diff)
downloadice-047677f816eb972a75213f3ed62dfc03368c2736.tar.bz2
ice-047677f816eb972a75213f3ed62dfc03368c2736.tar.xz
ice-047677f816eb972a75213f3ed62dfc03368c2736.zip
Fixed (ICE-5181) - unreferenced formal parameter
Diffstat (limited to 'cpp/demo')
-rw-r--r--cpp/demo/Freeze/bench/Client.cpp2
-rw-r--r--cpp/demo/Freeze/casino/Client.cpp2
-rw-r--r--cpp/demo/Freeze/casino/Server.cpp10
-rw-r--r--cpp/demo/Freeze/customEvictor/Client.cpp2
-rw-r--r--cpp/demo/Freeze/customEvictor/Evictor.cpp4
-rw-r--r--cpp/demo/Freeze/customEvictor/EvictorBase.cpp2
-rw-r--r--cpp/demo/Freeze/library/BookFactory.cpp4
-rw-r--r--cpp/demo/Freeze/library/RunParser.cpp2
-rw-r--r--cpp/demo/Freeze/library/Server.cpp2
-rw-r--r--cpp/demo/Freeze/phonebook/ContactFactory.cpp4
-rw-r--r--cpp/demo/Freeze/phonebook/RunParser.cpp2
-rw-r--r--cpp/demo/Freeze/phonebook/Server.cpp2
-rw-r--r--cpp/demo/Freeze/transform/create.cpp2
-rw-r--r--cpp/demo/Freeze/transform/read.cpp2
-rw-r--r--cpp/demo/Freeze/transform/readnew.cpp2
-rw-r--r--cpp/demo/Freeze/transform/recreate.cpp2
-rw-r--r--cpp/demo/Glacier2/callback/Client.cpp2
-rw-r--r--cpp/demo/Glacier2/callback/Server.cpp2
-rw-r--r--cpp/demo/Glacier2/chat/Client.cpp2
-rw-r--r--cpp/demo/Glacier2/chat/Server.cpp2
-rw-r--r--cpp/demo/Ice/MFC/server/HelloServerDlg.cpp2
-rw-r--r--cpp/demo/Ice/async/Server.cpp2
-rw-r--r--cpp/demo/Ice/bidir/Client.cpp2
-rw-r--r--cpp/demo/Ice/bidir/Server.cpp2
-rw-r--r--cpp/demo/Ice/callback/CallbackSenderI.cpp2
-rw-r--r--cpp/demo/Ice/callback/Client.cpp2
-rw-r--r--cpp/demo/Ice/callback/Server.cpp2
-rw-r--r--cpp/demo/Ice/converter/Server.cpp2
-rw-r--r--cpp/demo/Ice/hello/Server.cpp2
-rw-r--r--cpp/demo/Ice/interleaved/Server.cpp2
-rw-r--r--cpp/demo/Ice/invoke/Client.cpp2
-rw-r--r--cpp/demo/Ice/invoke/Server.cpp2
-rw-r--r--cpp/demo/Ice/latency/Server.cpp2
-rw-r--r--cpp/demo/Ice/nested/Client.cpp2
-rw-r--r--cpp/demo/Ice/nested/NestedI.cpp2
-rw-r--r--cpp/demo/Ice/nested/Server.cpp2
-rw-r--r--cpp/demo/Ice/nrvo/Server.cpp2
-rw-r--r--cpp/demo/Ice/optional/Server.cpp2
-rw-r--r--cpp/demo/Ice/plugin/HelloPluginI.cpp2
-rw-r--r--cpp/demo/Ice/plugin/LoggerPluginI.cpp2
-rw-r--r--cpp/demo/Ice/plugin/Server.cpp2
-rw-r--r--cpp/demo/Ice/properties/Server.cpp2
-rw-r--r--cpp/demo/Ice/session/Server.cpp2
-rw-r--r--cpp/demo/Ice/session/SessionI.cpp2
-rw-r--r--cpp/demo/Ice/throughput/Server.cpp2
-rw-r--r--cpp/demo/Ice/value/Server.cpp2
-rw-r--r--cpp/demo/IceBox/hello/HelloServiceI.cpp2
-rw-r--r--cpp/demo/IceGrid/allocate/Server.cpp2
-rw-r--r--cpp/demo/IceGrid/icebox/HelloServiceI.cpp2
-rw-r--r--cpp/demo/IceGrid/replication/Server.cpp2
-rw-r--r--cpp/demo/IceGrid/secure/Server.cpp2
-rw-r--r--cpp/demo/IceGrid/sessionActivation/Server.cpp2
-rw-r--r--cpp/demo/IceGrid/simple/Server.cpp2
-rw-r--r--cpp/demo/IcePatch2/MFC/PatchClientDlg.cpp2
-rw-r--r--cpp/demo/IceStorm/counter/Client.cpp2
-rw-r--r--cpp/demo/IceStorm/counter/Server.cpp2
-rw-r--r--cpp/demo/book/simple_filesystem/FilesystemI.cpp4
57 files changed, 69 insertions, 61 deletions
diff --git a/cpp/demo/Freeze/bench/Client.cpp b/cpp/demo/Freeze/bench/Client.cpp
index 91414d56ae4..67095e45dfb 100644
--- a/cpp/demo/Freeze/bench/Client.cpp
+++ b/cpp/demo/Freeze/bench/Client.cpp
@@ -696,7 +696,7 @@ public:
typedef IceUtil::Handle<MyFactory> MyFactoryPtr;
int
-TestApp::run(int argc, char* argv[])
+TestApp::run(int argc, char*[])
{
if(argc > 1)
{
diff --git a/cpp/demo/Freeze/casino/Client.cpp b/cpp/demo/Freeze/casino/Client.cpp
index a9a1ceb5eeb..9315d98458a 100644
--- a/cpp/demo/Freeze/casino/Client.cpp
+++ b/cpp/demo/Freeze/casino/Client.cpp
@@ -39,7 +39,7 @@ main(int argc, char* argv[])
}
int
-CasinoClient::run(int argc, char* argv[])
+CasinoClient::run(int argc, char*[])
{
if(argc > 1)
{
diff --git a/cpp/demo/Freeze/casino/Server.cpp b/cpp/demo/Freeze/casino/Server.cpp
index 1ae1b9ed42c..4f3f7c64e17 100644
--- a/cpp/demo/Freeze/casino/Server.cpp
+++ b/cpp/demo/Freeze/casino/Server.cpp
@@ -51,7 +51,7 @@ class ObjectFactory : public Ice::ObjectFactory
public:
virtual Ice::ObjectPtr
- create(const string& type)
+ create(const string& /*type*/)
{
return new T;
}
@@ -63,7 +63,7 @@ public:
};
int
-CasinoServer::run(int argc, char* argv[])
+CasinoServer::run(int argc, char*[])
{
if(argc > 1)
{
@@ -115,7 +115,7 @@ CasinoServer::run(int argc, char* argv[])
}
virtual void
- initialize(const Ice::ObjectAdapterPtr& adapter, const Ice::Identity& identity, const string& facet,
+ initialize(const Ice::ObjectAdapterPtr& /*adapter*/, const Ice::Identity& /*identity*/, const string& /*facet*/,
const Ice::ObjectPtr& servant)
{
BankI* bank = dynamic_cast<BankI*>(servant.get());
@@ -154,7 +154,7 @@ CasinoServer::run(int argc, char* argv[])
}
virtual void
- initialize(const Ice::ObjectAdapterPtr& adapter, const Ice::Identity& identity, const string& facet,
+ initialize(const Ice::ObjectAdapterPtr& adapter, const Ice::Identity& identity, const string& /*facet*/,
const Ice::ObjectPtr& servant)
{
CasinoStore::PersistentPlayerPrx prx =
@@ -195,7 +195,7 @@ CasinoServer::run(int argc, char* argv[])
}
virtual void
- initialize(const Ice::ObjectAdapterPtr& adapter, const Ice::Identity& identity, const string& facet,
+ initialize(const Ice::ObjectAdapterPtr& /*adapter*/, const Ice::Identity& /*identity*/, const string& /*facet*/,
const Ice::ObjectPtr& servant)
{
BetI* bet = dynamic_cast<BetI*>(servant.get());
diff --git a/cpp/demo/Freeze/customEvictor/Client.cpp b/cpp/demo/Freeze/customEvictor/Client.cpp
index e340aec325f..8a971efea15 100644
--- a/cpp/demo/Freeze/customEvictor/Client.cpp
+++ b/cpp/demo/Freeze/customEvictor/Client.cpp
@@ -141,7 +141,7 @@ private:
typedef IceUtil::Handle<WriterThread> WriterThreadPtr;
int
-WarehouseClient::run(int argc, char* argv[])
+WarehouseClient::run(int argc, char*[])
{
if(argc > 1)
{
diff --git a/cpp/demo/Freeze/customEvictor/Evictor.cpp b/cpp/demo/Freeze/customEvictor/Evictor.cpp
index d05e13038a0..8147beefaf4 100644
--- a/cpp/demo/Freeze/customEvictor/Evictor.cpp
+++ b/cpp/demo/Freeze/customEvictor/Evictor.cpp
@@ -182,7 +182,7 @@ Evictor::locate(const Ice::Current& current, Ice::LocalObjectPtr& cookie)
}
void
-Evictor::finished(const Ice::Current& current, const Ice::ObjectPtr& servant,
+Evictor::finished(const Ice::Current& /*current*/, const Ice::ObjectPtr& /*servant*/,
const Ice::LocalObjectPtr& cookie)
{
if(cookie != 0)
@@ -200,7 +200,7 @@ Evictor::finished(const Ice::Current& current, const Ice::ObjectPtr& servant,
}
void
-Evictor::deactivate(const string& category)
+Evictor::deactivate(const string& /*category*/)
{
Mutex::Lock lock(_mutex);
_size = 0;
diff --git a/cpp/demo/Freeze/customEvictor/EvictorBase.cpp b/cpp/demo/Freeze/customEvictor/EvictorBase.cpp
index d07e6bfd83d..f2713c5daf3 100644
--- a/cpp/demo/Freeze/customEvictor/EvictorBase.cpp
+++ b/cpp/demo/Freeze/customEvictor/EvictorBase.cpp
@@ -79,7 +79,7 @@ EvictorBase::finished(const Ice::Current&, const Ice::ObjectPtr&, const Ice::Loc
}
void
-EvictorBase::deactivate(const std::string& category)
+EvictorBase::deactivate(const std::string& /*category*/)
{
IceUtil::Mutex::Lock lock(_mutex);
diff --git a/cpp/demo/Freeze/library/BookFactory.cpp b/cpp/demo/Freeze/library/BookFactory.cpp
index b51dab75fa8..dec916ed77a 100644
--- a/cpp/demo/Freeze/library/BookFactory.cpp
+++ b/cpp/demo/Freeze/library/BookFactory.cpp
@@ -17,7 +17,11 @@ BookFactory::BookFactory(const LibraryIPtr& library) :
}
Ice::ObjectPtr
+#ifndef NDEBUG
BookFactory::create(const string& type)
+#else
+BookFactory::create(const string&)
+#endif
{
assert(_library);
assert(type == "::Demo::Book");
diff --git a/cpp/demo/Freeze/library/RunParser.cpp b/cpp/demo/Freeze/library/RunParser.cpp
index 52b64bee3f4..979aabcd155 100644
--- a/cpp/demo/Freeze/library/RunParser.cpp
+++ b/cpp/demo/Freeze/library/RunParser.cpp
@@ -14,7 +14,7 @@ using namespace std;
using namespace Demo;
int
-runParser(int argc, char* argv[], const Ice::CommunicatorPtr& communicator)
+runParser(int, char* argv[], const Ice::CommunicatorPtr& communicator)
{
LibraryPrx library = LibraryPrx::checkedCast(communicator->propertyToProxy("Library.Proxy"));
if(!library)
diff --git a/cpp/demo/Freeze/library/Server.cpp b/cpp/demo/Freeze/library/Server.cpp
index 018862d4c97..242a5da3f05 100644
--- a/cpp/demo/Freeze/library/Server.cpp
+++ b/cpp/demo/Freeze/library/Server.cpp
@@ -37,7 +37,7 @@ main(int argc, char* argv[])
}
int
-LibraryServer::run(int argc, char* argv[])
+LibraryServer::run(int argc, char*[])
{
if(argc > 1)
{
diff --git a/cpp/demo/Freeze/phonebook/ContactFactory.cpp b/cpp/demo/Freeze/phonebook/ContactFactory.cpp
index 45c65754587..9be41b1cfd4 100644
--- a/cpp/demo/Freeze/phonebook/ContactFactory.cpp
+++ b/cpp/demo/Freeze/phonebook/ContactFactory.cpp
@@ -17,7 +17,11 @@ ContactFactory::ContactFactory()
}
Ice::ObjectPtr
+#ifndef NDEBUG
ContactFactory::create(const string& type)
+#else
+ContactFactory::create(const string&)
+#endif
{
assert(_evictor);
assert(type == "::Demo::Contact");
diff --git a/cpp/demo/Freeze/phonebook/RunParser.cpp b/cpp/demo/Freeze/phonebook/RunParser.cpp
index f1dc313e6a4..188d084aa65 100644
--- a/cpp/demo/Freeze/phonebook/RunParser.cpp
+++ b/cpp/demo/Freeze/phonebook/RunParser.cpp
@@ -14,7 +14,7 @@ using namespace std;
using namespace Demo;
int
-runParser(int argc, char* argv[], const Ice::CommunicatorPtr& communicator)
+runParser(int, char* argv[], const Ice::CommunicatorPtr& communicator)
{
PhoneBookPrx phoneBook = PhoneBookPrx::checkedCast(communicator->propertyToProxy("PhoneBook.Proxy"));
if(!phoneBook)
diff --git a/cpp/demo/Freeze/phonebook/Server.cpp b/cpp/demo/Freeze/phonebook/Server.cpp
index 6e916dbe2e8..7de451c62df 100644
--- a/cpp/demo/Freeze/phonebook/Server.cpp
+++ b/cpp/demo/Freeze/phonebook/Server.cpp
@@ -38,7 +38,7 @@ main(int argc, char* argv[])
}
int
-PhoneBookServer::run(int argc, char* argv[])
+PhoneBookServer::run(int argc, char*[])
{
if(argc > 1)
{
diff --git a/cpp/demo/Freeze/transform/create.cpp b/cpp/demo/Freeze/transform/create.cpp
index 4ee750e51a8..34e3f2789fe 100644
--- a/cpp/demo/Freeze/transform/create.cpp
+++ b/cpp/demo/Freeze/transform/create.cpp
@@ -29,7 +29,7 @@ int main(int argc, char* argv[])
}
int
-Create::run(int argc, char* argv[])
+Create::run(int, char*[])
{
const string names[] = { "don", "ed", "frank", "gary", "arnold", "bob", "carlos" };
const string phoneNumbers[] = { "(777)777-7777", "(666)666-6666", "(555)555-5555 x123",
diff --git a/cpp/demo/Freeze/transform/read.cpp b/cpp/demo/Freeze/transform/read.cpp
index 94feb8514ea..220dfb60527 100644
--- a/cpp/demo/Freeze/transform/read.cpp
+++ b/cpp/demo/Freeze/transform/read.cpp
@@ -29,7 +29,7 @@ int main(int argc, char* argv[])
}
int
-Read::run(int argc, char* argv[])
+Read::run(int, char*[])
{
ConnectionPtr connection = createConnection(communicator(), "db");
const Contacts contacts(connection, "contacts", false);
diff --git a/cpp/demo/Freeze/transform/readnew.cpp b/cpp/demo/Freeze/transform/readnew.cpp
index 8ae1925aa11..7dc45079c1d 100644
--- a/cpp/demo/Freeze/transform/readnew.cpp
+++ b/cpp/demo/Freeze/transform/readnew.cpp
@@ -29,7 +29,7 @@ int main(int argc, char* argv[])
}
int
-ReadNew::run(int argc, char* argv[])
+ReadNew::run(int, char*[])
{
ConnectionPtr connection = createConnection(communicator(), "dbnew");
bool createDb = true;
diff --git a/cpp/demo/Freeze/transform/recreate.cpp b/cpp/demo/Freeze/transform/recreate.cpp
index fa9adeda525..e9c13403f7f 100644
--- a/cpp/demo/Freeze/transform/recreate.cpp
+++ b/cpp/demo/Freeze/transform/recreate.cpp
@@ -29,7 +29,7 @@ int main(int argc, char* argv[])
}
int
-Recreate::run(int argc, char* argv[])
+Recreate::run(int, char*[])
{
ConnectionPtr connection = createConnection(communicator(), "dbnew");
NewContacts::recreate(connection, "contacts");
diff --git a/cpp/demo/Glacier2/callback/Client.cpp b/cpp/demo/Glacier2/callback/Client.cpp
index 4c736cc16bb..7353cef2c88 100644
--- a/cpp/demo/Glacier2/callback/Client.cpp
+++ b/cpp/demo/Glacier2/callback/Client.cpp
@@ -93,7 +93,7 @@ CallbackClient::createSession()
}
int
-CallbackClient::runWithSession(int argc, char* argv[])
+CallbackClient::runWithSession(int argc, char*[])
{
if(argc > 1)
{
diff --git a/cpp/demo/Glacier2/callback/Server.cpp b/cpp/demo/Glacier2/callback/Server.cpp
index 567709a94ed..fe40961831a 100644
--- a/cpp/demo/Glacier2/callback/Server.cpp
+++ b/cpp/demo/Glacier2/callback/Server.cpp
@@ -28,7 +28,7 @@ main(int argc, char* argv[])
}
int
-CallbackServer::run(int argc, char* argv[])
+CallbackServer::run(int argc, char*[])
{
if(argc > 1)
{
diff --git a/cpp/demo/Glacier2/chat/Client.cpp b/cpp/demo/Glacier2/chat/Client.cpp
index 27c63d2247e..4905b577962 100644
--- a/cpp/demo/Glacier2/chat/Client.cpp
+++ b/cpp/demo/Glacier2/chat/Client.cpp
@@ -87,7 +87,7 @@ public:
}
virtual int
- runWithSession(int argc, char* argv[])
+ runWithSession(int argc, char*[])
{
if(argc > 1)
{
diff --git a/cpp/demo/Glacier2/chat/Server.cpp b/cpp/demo/Glacier2/chat/Server.cpp
index 0cac02bac57..76127cd5d6b 100644
--- a/cpp/demo/Glacier2/chat/Server.cpp
+++ b/cpp/demo/Glacier2/chat/Server.cpp
@@ -42,7 +42,7 @@ class ChatServer : public Ice::Application
public:
virtual int
- run(int argc, char* argv[])
+ run(int argc, char*[])
{
if(argc > 1)
{
diff --git a/cpp/demo/Ice/MFC/server/HelloServerDlg.cpp b/cpp/demo/Ice/MFC/server/HelloServerDlg.cpp
index 48a8824fba5..c555ed6821b 100644
--- a/cpp/demo/Ice/MFC/server/HelloServerDlg.cpp
+++ b/cpp/demo/Ice/MFC/server/HelloServerDlg.cpp
@@ -121,7 +121,7 @@ CHelloServerDlg::OnClear()
}
LRESULT
-CHelloServerDlg::OnLog(WPARAM wParam, LPARAM lParam)
+CHelloServerDlg::OnLog(WPARAM, LPARAM lParam)
{
char* text = (char*)lParam;
diff --git a/cpp/demo/Ice/async/Server.cpp b/cpp/demo/Ice/async/Server.cpp
index d069e379930..eec166a5349 100644
--- a/cpp/demo/Ice/async/Server.cpp
+++ b/cpp/demo/Ice/async/Server.cpp
@@ -33,7 +33,7 @@ main(int argc, char* argv[])
}
int
-AsyncServer::run(int argc, char* argv[])
+AsyncServer::run(int argc, char*[])
{
if(argc > 1)
{
diff --git a/cpp/demo/Ice/bidir/Client.cpp b/cpp/demo/Ice/bidir/Client.cpp
index 20809447998..0cda6b4dc36 100644
--- a/cpp/demo/Ice/bidir/Client.cpp
+++ b/cpp/demo/Ice/bidir/Client.cpp
@@ -40,7 +40,7 @@ main(int argc, char* argv[])
}
int
-CallbackClient::run(int argc, char* argv[])
+CallbackClient::run(int argc, char*[])
{
if(argc > 1)
{
diff --git a/cpp/demo/Ice/bidir/Server.cpp b/cpp/demo/Ice/bidir/Server.cpp
index c23ea69dfc0..1a90e9f2f5b 100644
--- a/cpp/demo/Ice/bidir/Server.cpp
+++ b/cpp/demo/Ice/bidir/Server.cpp
@@ -28,7 +28,7 @@ main(int argc, char* argv[])
}
int
-CallbackServer::run(int argc, char* argv[])
+CallbackServer::run(int argc, char*[])
{
if(argc > 1)
{
diff --git a/cpp/demo/Ice/callback/CallbackSenderI.cpp b/cpp/demo/Ice/callback/CallbackSenderI.cpp
index 5a1a518f2c6..1132c9cd71c 100644
--- a/cpp/demo/Ice/callback/CallbackSenderI.cpp
+++ b/cpp/demo/Ice/callback/CallbackSenderI.cpp
@@ -15,7 +15,7 @@ using namespace Ice;
using namespace Demo;
void
-CallbackSenderI::initiateCallback(const CallbackReceiverPrx& proxy, const Current& current)
+CallbackSenderI::initiateCallback(const CallbackReceiverPrx& proxy, const Current&)
{
cout << "initiating callback" << endl;
try
diff --git a/cpp/demo/Ice/callback/Client.cpp b/cpp/demo/Ice/callback/Client.cpp
index 7f3ca67f288..a26d77d6971 100644
--- a/cpp/demo/Ice/callback/Client.cpp
+++ b/cpp/demo/Ice/callback/Client.cpp
@@ -63,7 +63,7 @@ CallbackClient::CallbackClient() :
}
int
-CallbackClient::run(int argc, char* argv[])
+CallbackClient::run(int argc, char*[])
{
if(argc > 1)
{
diff --git a/cpp/demo/Ice/callback/Server.cpp b/cpp/demo/Ice/callback/Server.cpp
index bde8634a8b1..5b5bec8b810 100644
--- a/cpp/demo/Ice/callback/Server.cpp
+++ b/cpp/demo/Ice/callback/Server.cpp
@@ -28,7 +28,7 @@ main(int argc, char* argv[])
}
int
-CallbackServer::run(int argc, char* argv[])
+CallbackServer::run(int argc, char*[])
{
if(argc > 1)
{
diff --git a/cpp/demo/Ice/converter/Server.cpp b/cpp/demo/Ice/converter/Server.cpp
index e413c2da189..92e3d6a03e3 100644
--- a/cpp/demo/Ice/converter/Server.cpp
+++ b/cpp/demo/Ice/converter/Server.cpp
@@ -27,7 +27,7 @@ main(int argc, char* argv[])
}
int
-ConverterServer::run(int argc, char* argv[])
+ConverterServer::run(int argc, char*[])
{
if(argc > 1)
{
diff --git a/cpp/demo/Ice/hello/Server.cpp b/cpp/demo/Ice/hello/Server.cpp
index 7ba40e412e8..3c3aef8bfab 100644
--- a/cpp/demo/Ice/hello/Server.cpp
+++ b/cpp/demo/Ice/hello/Server.cpp
@@ -27,7 +27,7 @@ main(int argc, char* argv[])
}
int
-HelloServer::run(int argc, char* argv[])
+HelloServer::run(int argc, char*[])
{
if(argc > 1)
{
diff --git a/cpp/demo/Ice/interleaved/Server.cpp b/cpp/demo/Ice/interleaved/Server.cpp
index ff698bd9b13..e3f93a3c905 100644
--- a/cpp/demo/Ice/interleaved/Server.cpp
+++ b/cpp/demo/Ice/interleaved/Server.cpp
@@ -27,7 +27,7 @@ main(int argc, char* argv[])
}
int
-ThroughputServer::run(int argc, char* argv[])
+ThroughputServer::run(int argc, char*[])
{
if(argc > 1)
{
diff --git a/cpp/demo/Ice/invoke/Client.cpp b/cpp/demo/Ice/invoke/Client.cpp
index 722bdd199aa..c216cb29cea 100644
--- a/cpp/demo/Ice/invoke/Client.cpp
+++ b/cpp/demo/Ice/invoke/Client.cpp
@@ -61,7 +61,7 @@ InvokeClient::InvokeClient() :
}
int
-InvokeClient::run(int argc, char* argv[])
+InvokeClient::run(int argc, char*[])
{
if(argc > 1)
{
diff --git a/cpp/demo/Ice/invoke/Server.cpp b/cpp/demo/Ice/invoke/Server.cpp
index 7123f1e63c0..169c26080e3 100644
--- a/cpp/demo/Ice/invoke/Server.cpp
+++ b/cpp/demo/Ice/invoke/Server.cpp
@@ -27,7 +27,7 @@ main(int argc, char* argv[])
}
int
-InvokeServer::run(int argc, char* argv[])
+InvokeServer::run(int argc, char*[])
{
if(argc > 1)
{
diff --git a/cpp/demo/Ice/latency/Server.cpp b/cpp/demo/Ice/latency/Server.cpp
index ad02b7efe31..35dc375e487 100644
--- a/cpp/demo/Ice/latency/Server.cpp
+++ b/cpp/demo/Ice/latency/Server.cpp
@@ -28,7 +28,7 @@ main(int argc, char* argv[])
}
int
-LatencyServer::run(int argc, char* argv[])
+LatencyServer::run(int argc, char*[])
{
if(argc > 1)
{
diff --git a/cpp/demo/Ice/nested/Client.cpp b/cpp/demo/Ice/nested/Client.cpp
index 8d987ab8eac..2c559cf3911 100644
--- a/cpp/demo/Ice/nested/Client.cpp
+++ b/cpp/demo/Ice/nested/Client.cpp
@@ -39,7 +39,7 @@ NestedClient::NestedClient() :
}
int
-NestedClient::run(int argc, char* argv[])
+NestedClient::run(int argc, char*[])
{
if(argc > 1)
{
diff --git a/cpp/demo/Ice/nested/NestedI.cpp b/cpp/demo/Ice/nested/NestedI.cpp
index 104680b3cdb..71bd97372e9 100644
--- a/cpp/demo/Ice/nested/NestedI.cpp
+++ b/cpp/demo/Ice/nested/NestedI.cpp
@@ -20,7 +20,7 @@ NestedI::NestedI(const NestedPrx& self) :
}
void
-NestedI::nestedCall(Int level, const NestedPrx& proxy, const Ice::Current& current)
+NestedI::nestedCall(Int level, const NestedPrx& proxy, const Ice::Current&)
{
cout << level << endl;
if(--level > 0)
diff --git a/cpp/demo/Ice/nested/Server.cpp b/cpp/demo/Ice/nested/Server.cpp
index 090491dd019..cb40e7d8d4c 100644
--- a/cpp/demo/Ice/nested/Server.cpp
+++ b/cpp/demo/Ice/nested/Server.cpp
@@ -28,7 +28,7 @@ main(int argc, char* argv[])
}
int
-NestedServer::run(int argc, char* argv[])
+NestedServer::run(int argc, char*[])
{
if(argc > 1)
{
diff --git a/cpp/demo/Ice/nrvo/Server.cpp b/cpp/demo/Ice/nrvo/Server.cpp
index e62b50388ef..464d65ded9d 100644
--- a/cpp/demo/Ice/nrvo/Server.cpp
+++ b/cpp/demo/Ice/nrvo/Server.cpp
@@ -27,7 +27,7 @@ main(int argc, char* argv[])
}
int
-NrvotServer::run(int argc, char* argv[])
+NrvotServer::run(int argc, char*[])
{
if(argc > 1)
{
diff --git a/cpp/demo/Ice/optional/Server.cpp b/cpp/demo/Ice/optional/Server.cpp
index c841342ef80..71f7475fb5e 100644
--- a/cpp/demo/Ice/optional/Server.cpp
+++ b/cpp/demo/Ice/optional/Server.cpp
@@ -27,7 +27,7 @@ main(int argc, char* argv[])
}
int
-ContactServer::run(int argc, char* argv[])
+ContactServer::run(int argc, char*[])
{
if(argc > 1)
{
diff --git a/cpp/demo/Ice/plugin/HelloPluginI.cpp b/cpp/demo/Ice/plugin/HelloPluginI.cpp
index d65b83a2d32..9cf663c3efb 100644
--- a/cpp/demo/Ice/plugin/HelloPluginI.cpp
+++ b/cpp/demo/Ice/plugin/HelloPluginI.cpp
@@ -67,7 +67,7 @@ extern "C"
{
ICE_DECLSPEC_EXPORT ::Ice::Plugin*
-createHello(const Ice::CommunicatorPtr& communicator, const string& name, const Ice::StringSeq& args)
+createHello(const Ice::CommunicatorPtr& communicator, const string&, const Ice::StringSeq&)
{
return new HelloPluginI(communicator);
}
diff --git a/cpp/demo/Ice/plugin/LoggerPluginI.cpp b/cpp/demo/Ice/plugin/LoggerPluginI.cpp
index 4ee5a7ea3ec..2069a40a513 100644
--- a/cpp/demo/Ice/plugin/LoggerPluginI.cpp
+++ b/cpp/demo/Ice/plugin/LoggerPluginI.cpp
@@ -55,7 +55,7 @@ extern "C"
{
ICE_DECLSPEC_EXPORT ::Ice::Plugin*
-createLogger(const Ice::CommunicatorPtr& communicator, const string& name, const Ice::StringSeq& args)
+createLogger(const Ice::CommunicatorPtr& communicator, const string&, const Ice::StringSeq&)
{
return new Ice::LoggerPlugin(communicator, new LoggerI);
}
diff --git a/cpp/demo/Ice/plugin/Server.cpp b/cpp/demo/Ice/plugin/Server.cpp
index d2b6e37a3cc..17fa7ac3ba1 100644
--- a/cpp/demo/Ice/plugin/Server.cpp
+++ b/cpp/demo/Ice/plugin/Server.cpp
@@ -16,7 +16,7 @@ class PluginServer : public Ice::Application
public:
virtual int
- run(int argc, char* argv[])
+ run(int argc, char*[])
{
if(argc > 1)
{
diff --git a/cpp/demo/Ice/properties/Server.cpp b/cpp/demo/Ice/properties/Server.cpp
index 5c6fdbc68f6..6cbe9c19dad 100644
--- a/cpp/demo/Ice/properties/Server.cpp
+++ b/cpp/demo/Ice/properties/Server.cpp
@@ -81,7 +81,7 @@ main(int argc, char* argv[])
}
int
-Server::run(int argc, char* argv[])
+Server::run(int argc, char*[])
{
if(argc > 1)
{
diff --git a/cpp/demo/Ice/session/Server.cpp b/cpp/demo/Ice/session/Server.cpp
index 36c1987570f..36f393e7045 100644
--- a/cpp/demo/Ice/session/Server.cpp
+++ b/cpp/demo/Ice/session/Server.cpp
@@ -27,7 +27,7 @@ main(int argc, char* argv[])
}
int
-SessionServer::run(int argc, char* argv[])
+SessionServer::run(int argc, char*[])
{
if(argc > 1)
{
diff --git a/cpp/demo/Ice/session/SessionI.cpp b/cpp/demo/Ice/session/SessionI.cpp
index 32788c69cde..06340523888 100644
--- a/cpp/demo/Ice/session/SessionI.cpp
+++ b/cpp/demo/Ice/session/SessionI.cpp
@@ -64,7 +64,7 @@ SessionI::createHello(const Ice::Current& c)
}
void
-SessionI::refresh(const Ice::Current& c)
+SessionI::refresh(const Ice::Current&)
{
Lock sync(*this);
if(_destroy)
diff --git a/cpp/demo/Ice/throughput/Server.cpp b/cpp/demo/Ice/throughput/Server.cpp
index ff698bd9b13..e3f93a3c905 100644
--- a/cpp/demo/Ice/throughput/Server.cpp
+++ b/cpp/demo/Ice/throughput/Server.cpp
@@ -27,7 +27,7 @@ main(int argc, char* argv[])
}
int
-ThroughputServer::run(int argc, char* argv[])
+ThroughputServer::run(int argc, char*[])
{
if(argc > 1)
{
diff --git a/cpp/demo/Ice/value/Server.cpp b/cpp/demo/Ice/value/Server.cpp
index 57e591829c8..8b10c08d3ec 100644
--- a/cpp/demo/Ice/value/Server.cpp
+++ b/cpp/demo/Ice/value/Server.cpp
@@ -28,7 +28,7 @@ main(int argc, char* argv[])
}
int
-ValueServer::run(int argc, char* argv[])
+ValueServer::run(int argc, char*[])
{
if(argc > 1)
{
diff --git a/cpp/demo/IceBox/hello/HelloServiceI.cpp b/cpp/demo/IceBox/hello/HelloServiceI.cpp
index e409dd29a39..e74abfd0e26 100644
--- a/cpp/demo/IceBox/hello/HelloServiceI.cpp
+++ b/cpp/demo/IceBox/hello/HelloServiceI.cpp
@@ -36,7 +36,7 @@ HelloServiceI::~HelloServiceI()
}
void
-HelloServiceI::start(const string& name, const Ice::CommunicatorPtr& communicator, const Ice::StringSeq& args)
+HelloServiceI::start(const string& name, const Ice::CommunicatorPtr& communicator, const Ice::StringSeq& /*args*/)
{
_adapter = communicator->createObjectAdapter(name);
Demo::HelloPtr hello = new HelloI;
diff --git a/cpp/demo/IceGrid/allocate/Server.cpp b/cpp/demo/IceGrid/allocate/Server.cpp
index 7b5aa45be34..9f9beabc384 100644
--- a/cpp/demo/IceGrid/allocate/Server.cpp
+++ b/cpp/demo/IceGrid/allocate/Server.cpp
@@ -29,7 +29,7 @@ main(int argc, char* argv[])
}
int
-Server::run(int argc, char* argv[])
+Server::run(int argc, char*[])
{
if(argc > 1)
{
diff --git a/cpp/demo/IceGrid/icebox/HelloServiceI.cpp b/cpp/demo/IceGrid/icebox/HelloServiceI.cpp
index a39a86fd5f3..990a70fc9b6 100644
--- a/cpp/demo/IceGrid/icebox/HelloServiceI.cpp
+++ b/cpp/demo/IceGrid/icebox/HelloServiceI.cpp
@@ -28,7 +28,7 @@ create(Ice::CommunicatorPtr communicator)
}
void
-HelloServiceI::start(const string& name, const Ice::CommunicatorPtr& communicator, const Ice::StringSeq& args)
+HelloServiceI::start(const string& name, const Ice::CommunicatorPtr& communicator, const Ice::StringSeq& /*args*/)
{
_adapter = communicator->createObjectAdapter("Hello-" + name);
diff --git a/cpp/demo/IceGrid/replication/Server.cpp b/cpp/demo/IceGrid/replication/Server.cpp
index 7b5aa45be34..9f9beabc384 100644
--- a/cpp/demo/IceGrid/replication/Server.cpp
+++ b/cpp/demo/IceGrid/replication/Server.cpp
@@ -29,7 +29,7 @@ main(int argc, char* argv[])
}
int
-Server::run(int argc, char* argv[])
+Server::run(int argc, char*[])
{
if(argc > 1)
{
diff --git a/cpp/demo/IceGrid/secure/Server.cpp b/cpp/demo/IceGrid/secure/Server.cpp
index c23ec76623d..2cf97432abb 100644
--- a/cpp/demo/IceGrid/secure/Server.cpp
+++ b/cpp/demo/IceGrid/secure/Server.cpp
@@ -36,7 +36,7 @@ main(int argc, char* argv[])
}
int
-Server::run(int argc, char* argv[])
+Server::run(int argc, char*[])
{
if(argc > 1)
{
diff --git a/cpp/demo/IceGrid/sessionActivation/Server.cpp b/cpp/demo/IceGrid/sessionActivation/Server.cpp
index 7b5aa45be34..9f9beabc384 100644
--- a/cpp/demo/IceGrid/sessionActivation/Server.cpp
+++ b/cpp/demo/IceGrid/sessionActivation/Server.cpp
@@ -29,7 +29,7 @@ main(int argc, char* argv[])
}
int
-Server::run(int argc, char* argv[])
+Server::run(int argc, char*[])
{
if(argc > 1)
{
diff --git a/cpp/demo/IceGrid/simple/Server.cpp b/cpp/demo/IceGrid/simple/Server.cpp
index c23ec76623d..2cf97432abb 100644
--- a/cpp/demo/IceGrid/simple/Server.cpp
+++ b/cpp/demo/IceGrid/simple/Server.cpp
@@ -36,7 +36,7 @@ main(int argc, char* argv[])
}
int
-Server::run(int argc, char* argv[])
+Server::run(int argc, char*[])
{
if(argc > 1)
{
diff --git a/cpp/demo/IcePatch2/MFC/PatchClientDlg.cpp b/cpp/demo/IcePatch2/MFC/PatchClientDlg.cpp
index 0f088cadf3a..20766445b39 100644
--- a/cpp/demo/IcePatch2/MFC/PatchClientDlg.cpp
+++ b/cpp/demo/IcePatch2/MFC/PatchClientDlg.cpp
@@ -50,7 +50,7 @@ public:
}
virtual bool
- noFileSummary(const string& reason)
+ noFileSummary(const string& /*reason*/)
{
return IDYES == AfxMessageBox(L"Cannot load file summary. Perform a thorough patch?", MB_YESNO|MB_ICONSTOP);
}
diff --git a/cpp/demo/IceStorm/counter/Client.cpp b/cpp/demo/IceStorm/counter/Client.cpp
index aa26c5fc6e7..0babc64e198 100644
--- a/cpp/demo/IceStorm/counter/Client.cpp
+++ b/cpp/demo/IceStorm/counter/Client.cpp
@@ -32,7 +32,7 @@ main(int argc, char* argv[])
}
int
-Client::run(int argc, char* argv[])
+Client::run(int argc, char*[])
{
if(argc > 1)
{
diff --git a/cpp/demo/IceStorm/counter/Server.cpp b/cpp/demo/IceStorm/counter/Server.cpp
index 3eeeaa8506a..80731fcac83 100644
--- a/cpp/demo/IceStorm/counter/Server.cpp
+++ b/cpp/demo/IceStorm/counter/Server.cpp
@@ -32,7 +32,7 @@ main(int argc, char* argv[])
}
int
-Server::run(int argc, char* argv[])
+Server::run(int argc, char*[])
{
if(argc > 1)
{
diff --git a/cpp/demo/book/simple_filesystem/FilesystemI.cpp b/cpp/demo/book/simple_filesystem/FilesystemI.cpp
index e1e552bc6c5..bff32dd0be7 100644
--- a/cpp/demo/book/simple_filesystem/FilesystemI.cpp
+++ b/cpp/demo/book/simple_filesystem/FilesystemI.cpp
@@ -22,7 +22,7 @@ Filesystem::NodeI::name(const Ice::Current&)
// NodeI constructor
-Filesystem::NodeI::NodeI(const Ice::CommunicatorPtr& communicator, const string& name, const DirectoryIPtr& parent) :
+Filesystem::NodeI::NodeI(const Ice::CommunicatorPtr&, const string& name, const DirectoryIPtr& parent) :
_name(name), _parent(parent)
{
// Create an identity. The root directory has the fixed identity "RootDir"
@@ -74,7 +74,7 @@ Filesystem::FileI::FileI(const Ice::CommunicatorPtr& communicator, const string&
// Slice Directory::list() operation
Filesystem::NodeSeq
-Filesystem::DirectoryI::list(const Ice::Current& c)
+Filesystem::DirectoryI::list(const Ice::Current&)
{
return _contents;
}