summaryrefslogtreecommitdiff
path: root/cpp/src/IcePack/ServerI.cpp
diff options
context:
space:
mode:
authorBenoit Foucher <benoit@zeroc.com>2002-11-26 15:57:26 +0000
committerBenoit Foucher <benoit@zeroc.com>2002-11-26 15:57:26 +0000
commite0974e8cb74f09a78abc6d3ceafdfbf156b5b56b (patch)
treee0bd9770b7bb6ec6ab91a0a3c37584c2751fb2dc /cpp/src/IcePack/ServerI.cpp
parentfile TwowaysAMI.cpp was initially added on branch ami. (diff)
downloadice-e0974e8cb74f09a78abc6d3ceafdfbf156b5b56b.tar.bz2
ice-e0974e8cb74f09a78abc6d3ceafdfbf156b5b56b.tar.xz
ice-e0974e8cb74f09a78abc6d3ceafdfbf156b5b56b.zip
Fixed warnings when compiled with optimization.
Diffstat (limited to 'cpp/src/IcePack/ServerI.cpp')
-rw-r--r--cpp/src/IcePack/ServerI.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/cpp/src/IcePack/ServerI.cpp b/cpp/src/IcePack/ServerI.cpp
index a7bb93fa7c4..81bb4f649f3 100644
--- a/cpp/src/IcePack/ServerI.cpp
+++ b/cpp/src/IcePack/ServerI.cpp
@@ -229,7 +229,7 @@ IcePack::ServerI::destroy(const Ice::Current& current)
void
IcePack::ServerI::terminated(const Ice::Current&)
{
- ServerState newState;
+ ServerState newState = Inactive; // Initialize to keep the compiler happy.
{
IceUtil::Monitor< IceUtil::Mutex>::Lock sync(*this);
@@ -408,7 +408,9 @@ IcePack::ServerI::stopInternal()
{
IceUtil::Monitor< IceUtil::Mutex>::Lock sync(*this);
+#ifndef NDEBUG
ServerState oldState = _state;
+#endif
while(true)
{