summaryrefslogtreecommitdiff
path: root/cpp/demo/Ice/hello/Client.cpp
diff options
context:
space:
mode:
authorDwayne Boone <dwayne@zeroc.com>2015-01-23 11:23:06 -0330
committerDwayne Boone <dwayne@zeroc.com>2015-01-23 11:23:06 -0330
commit73ed8d4571a1bfb312e1f459a34296eaf78ae850 (patch)
treeaa1840486c869ac79fc85d9c4aebbfdf6e4d1353 /cpp/demo/Ice/hello/Client.cpp
parentJava test controller server fixes (diff)
downloadice-73ed8d4571a1bfb312e1f459a34296eaf78ae850.tar.bz2
ice-73ed8d4571a1bfb312e1f459a34296eaf78ae850.tar.xz
ice-73ed8d4571a1bfb312e1f459a34296eaf78ae850.zip
Fixed some warnings that show upi with higher warning levels
Diffstat (limited to 'cpp/demo/Ice/hello/Client.cpp')
-rw-r--r--cpp/demo/Ice/hello/Client.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/cpp/demo/Ice/hello/Client.cpp b/cpp/demo/Ice/hello/Client.cpp
index d8f271cbee4..d325ab72627 100644
--- a/cpp/demo/Ice/hello/Client.cpp
+++ b/cpp/demo/Ice/hello/Client.cpp
@@ -69,7 +69,7 @@ HelloClient::run(int argc, char* argv[])
menu();
- char c;
+ char c = 'x';
do
{
try
@@ -124,11 +124,11 @@ HelloClient::run(int argc, char* argv[])
{
timeout = -1;
}
-
+
twoway = twoway->ice_invocationTimeout(timeout);
oneway = oneway->ice_invocationTimeout(timeout);
batchOneway = batchOneway->ice_invocationTimeout(timeout);
-
+
if(timeout == -1)
{
cout << "timeout is now switched off" << endl;
@@ -148,7 +148,7 @@ HelloClient::run(int argc, char* argv[])
{
delay = 0;
}
-
+
if(delay == 0)
{
cout << "server delay is now deactivated" << endl;
@@ -161,13 +161,13 @@ HelloClient::run(int argc, char* argv[])
else if(c == 'S')
{
secure = !secure;
-
+
twoway = twoway->ice_secure(secure);
oneway = oneway->ice_secure(secure);
batchOneway = batchOneway->ice_secure(secure);
datagram = datagram->ice_secure(secure);
batchDatagram = batchDatagram->ice_secure(secure);
-
+
if(secure)
{
cout << "secure mode is now on" << endl;