diff options
author | Bernard Normier <bernard@zeroc.com> | 2003-04-24 16:43:00 +0000 |
---|---|---|
committer | Bernard Normier <bernard@zeroc.com> | 2003-04-24 16:43:00 +0000 |
commit | 38799e58ddb78e9ada2c63694bbf54b6746f71bf (patch) | |
tree | 40ea71b972895ad06ff92b5631bc4a73bac788f6 /cpp/test/IceXML/encoding/Client.cpp | |
parent | override Ice.Default.Locator to avoid iceboxadmin error message (diff) | |
download | ice-38799e58ddb78e9ada2c63694bbf54b6746f71bf.tar.bz2 ice-38799e58ddb78e9ada2c63694bbf54b6746f71bf.tar.xz ice-38799e58ddb78e9ada2c63694bbf54b6746f71bf.zip |
Eliminated numerous warnings from Sun C++ 5.4 builds
Diffstat (limited to 'cpp/test/IceXML/encoding/Client.cpp')
-rw-r--r-- | cpp/test/IceXML/encoding/Client.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/cpp/test/IceXML/encoding/Client.cpp b/cpp/test/IceXML/encoding/Client.cpp index b3f7cebd1a9..f25e3c6e4d4 100644 --- a/cpp/test/IceXML/encoding/Client.cpp +++ b/cpp/test/IceXML/encoding/Client.cpp @@ -29,7 +29,7 @@ static string header = static string footer = "</ice:data>"; -static const string element = "s"; + static const string strings[] = { "hello world", @@ -47,6 +47,8 @@ static const string strings[] = void TestString(const Ice::CommunicatorPtr& communicator) { + const string element = "s"; + for(int i = 0; !strings[i].empty(); ++i) { ostringstream os; @@ -180,7 +182,7 @@ TestStruct4Seq(const Ice::CommunicatorPtr& communicator) test(seqout.size() == seqin.size()); while(!seqin.empty()) { - Test::Struct4 sin = seqin.back(); + sin = seqin.back(); Test::Struct4 sout = seqout.back(); test(sin == sout); seqout.pop_back(); |