diff options
author | Bernard Normier <bernard@zeroc.com> | 2012-11-30 20:38:55 +0000 |
---|---|---|
committer | Bernard Normier <bernard@zeroc.com> | 2012-11-30 20:38:55 +0000 |
commit | 4671f4029b7dff91be9e9b2d04aa8d604320a9c6 (patch) | |
tree | 7aec1718ee63f51b8dbd29f42fd7bf7b18a3f414 /cpp | |
parent | Fixed (ICE-5064) - Batch Oneway does not appear to work with Silverlight hell... (diff) | |
download | ice-4671f4029b7dff91be9e9b2d04aa8d604320a9c6.tar.bz2 ice-4671f4029b7dff91be9e9b2d04aa8d604320a9c6.tar.xz ice-4671f4029b7dff91be9e9b2d04aa8d604320a9c6.zip |
Fixed GCC release warnings and set QT_HOME to /usr in Make.rules
Diffstat (limited to 'cpp')
-rw-r--r-- | cpp/config/Make.rules | 4 | ||||
-rw-r--r-- | cpp/src/Ice/ConnectionI.cpp | 4 | ||||
-rw-r--r-- | cpp/src/Ice/Proxy.cpp | 2 | ||||
-rw-r--r-- | cpp/src/Ice/ProxyFactory.cpp | 2 | ||||
-rw-r--r-- | cpp/src/IceGrid/ServerCache.cpp | 6 | ||||
-rw-r--r-- | cpp/src/IceUtil/Shared.cpp | 6 |
6 files changed, 15 insertions, 9 deletions
diff --git a/cpp/config/Make.rules b/cpp/config/Make.rules index 333f518cfa3..89591f36d5f 100644 --- a/cpp/config/Make.rules +++ b/cpp/config/Make.rules @@ -116,9 +116,11 @@ USE_READLINE ?= no # # If you want to build the deprecated SQL database plugins for IceStorm -# and IceGrid, set QT_HOME to the Qt installation directory. +# and IceGrid, set QT_HOME to the Qt installation directory, and go +# to the database plugins directories to build them. # # +QT_HOME ?= /usr #QT_HOME = /usr/local/Trolltech/Qt-4.5.3 #QT_HOME = /Library/Frameworks diff --git a/cpp/src/Ice/ConnectionI.cpp b/cpp/src/Ice/ConnectionI.cpp index b1638274089..8a548df8a1d 100644 --- a/cpp/src/Ice/ConnectionI.cpp +++ b/cpp/src/Ice/ConnectionI.cpp @@ -670,7 +670,7 @@ Ice::ConnectionI::sendAsyncRequest(const OutgoingAsyncPtr& out, bool compress, b #endif } - AsyncStatus status; + AsyncStatus status = AsyncStatusQueued; try { OutgoingMessage message(out, os, compress, requestId); @@ -1044,7 +1044,7 @@ Ice::ConnectionI::flushAsyncBatchRequests(const BatchOutgoingAsyncPtr& outAsync) // // Send the batch stream. // - AsyncStatus status; + AsyncStatus status = AsyncStatusQueued; try { OutgoingMessage message(outAsync, outAsync->__getOs(), _batchRequestCompress, 0); diff --git a/cpp/src/Ice/Proxy.cpp b/cpp/src/Ice/Proxy.cpp index 7b5b6781867..64f8b238d70 100644 --- a/cpp/src/Ice/Proxy.cpp +++ b/cpp/src/Ice/Proxy.cpp @@ -1302,7 +1302,7 @@ IceProxy::Ice::Object::__handleException(const ::IceInternal::Handle< ::IceDeleg ex.ice_throw(); } - int interval; + int interval = 0; try { interval = _reference->getInstance()->proxyFactory()->checkRetryAfterException(ex, _reference, sleep, cnt); diff --git a/cpp/src/Ice/ProxyFactory.cpp b/cpp/src/Ice/ProxyFactory.cpp index c28520afcd6..239d3e2c18c 100644 --- a/cpp/src/Ice/ProxyFactory.cpp +++ b/cpp/src/Ice/ProxyFactory.cpp @@ -217,7 +217,7 @@ IceInternal::ProxyFactory::checkRetryAfterException(const LocalException& ex, ++cnt; assert(cnt > 0); - int interval; + int interval = -1; if(cnt == static_cast<int>(_retryIntervals.size() + 1) && dynamic_cast<const CloseConnectionException*>(&ex)) { diff --git a/cpp/src/IceGrid/ServerCache.cpp b/cpp/src/IceGrid/ServerCache.cpp index 8d6cf543a5e..d05fb627dc6 100644 --- a/cpp/src/IceGrid/ServerCache.cpp +++ b/cpp/src/IceGrid/ServerCache.cpp @@ -727,7 +727,7 @@ ServerEntry::loadCallback(const ServerPrx& proxy, const AdapterPrxDict& adpts, i ServerInfo destroy; int timeout = -1; bool synced = false; - bool noRestart; + bool noRestart = false; { Lock sync(*this); @@ -804,7 +804,7 @@ void ServerEntry::destroyCallback() { ServerInfo load; - bool noRestart; + bool noRestart = false; SessionIPtr session; { @@ -853,7 +853,7 @@ ServerEntry::exception(const Ice::Exception& ex) { ServerInfo load; SessionIPtr session; - bool noRestart; + bool noRestart = false; bool remove = false; int timeout = -1; diff --git a/cpp/src/IceUtil/Shared.cpp b/cpp/src/IceUtil/Shared.cpp index 39805cc746e..41ae9db3549 100644 --- a/cpp/src/IceUtil/Shared.cpp +++ b/cpp/src/IceUtil/Shared.cpp @@ -115,7 +115,11 @@ IceUtil::Shared::__incRef() assert(InterlockedExchangeAdd(&_ref, 0) >= 0); InterlockedIncrement(&_ref); #elif defined(ICE_HAS_GCC_BUILTINS) - int c = __sync_fetch_and_add(&_ref, 1); + +# ifndef NDEBUG + int c = +# endif + __sync_fetch_and_add(&_ref, 1); assert(c >= 0); #elif defined(ICE_HAS_ATOMIC_FUNCTIONS) assert(IceUtilInternal::atomicExchangeAdd(&_ref, 0) >= 0); |