diff options
author | Dwayne Boone <dwayne@zeroc.com> | 2015-01-23 11:23:06 -0330 |
---|---|---|
committer | Dwayne Boone <dwayne@zeroc.com> | 2015-01-23 11:23:06 -0330 |
commit | 73ed8d4571a1bfb312e1f459a34296eaf78ae850 (patch) | |
tree | aa1840486c869ac79fc85d9c4aebbfdf6e4d1353 /cpp/demo/IceDiscovery/hello/Client.cpp | |
parent | Java test controller server fixes (diff) | |
download | ice-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/IceDiscovery/hello/Client.cpp')
-rw-r--r-- | cpp/demo/IceDiscovery/hello/Client.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/cpp/demo/IceDiscovery/hello/Client.cpp b/cpp/demo/IceDiscovery/hello/Client.cpp index 602a91fb9e8..41b0b7b23f8 100644 --- a/cpp/demo/IceDiscovery/hello/Client.cpp +++ b/cpp/demo/IceDiscovery/hello/Client.cpp @@ -53,7 +53,7 @@ HelloClient::run(int argc, char* argv[]) // // Create a well-known proxy for the `hello' Ice object. A well-known proxy - // only includes the Ice object identity. It's resolved using the Ice locator + // only includes the Ice object identity. It's resolved using the Ice locator // implementation. // HelloPrx twoway = HelloPrx::checkedCast(communicator()->stringToProxy("hello")); @@ -73,7 +73,7 @@ HelloClient::run(int argc, char* argv[]) menu(); - char c; + char c = 'x'; do { try @@ -128,11 +128,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; @@ -152,7 +152,7 @@ HelloClient::run(int argc, char* argv[]) { delay = 0; } - + if(delay == 0) { cout << "server delay is now deactivated" << endl; @@ -165,13 +165,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; |