diff options
-rw-r--r-- | cpp/src/Freeze/TransactionalEvictorContext.h | 2 | ||||
-rw-r--r-- | cpp/src/Freeze/TransactionalEvictorI.cpp | 12 | ||||
-rw-r--r-- | cpp/src/Ice/InstrumentationI.cpp | 18 | ||||
-rw-r--r-- | cpp/src/Ice/ThreadPool.cpp | 6 | ||||
-rw-r--r-- | cpp/src/Ice/ThreadPool.h | 3 | ||||
-rw-r--r-- | cpp/src/IceGrid/NodeSessionManager.cpp | 1 | ||||
-rw-r--r-- | cpp/src/IceGrid/NodeSessionManager.h | 1 | ||||
-rw-r--r-- | cpp/src/IceGrid/ObjectCache.cpp | 5 | ||||
-rw-r--r-- | cpp/src/IceGrid/ObjectCache.h | 3 | ||||
-rw-r--r-- | cpp/src/slice2cpp/Gen.cpp | 10 | ||||
-rw-r--r-- | cpp/src/slice2cpp/Gen.h | 5 | ||||
-rw-r--r-- | cpp/src/slice2java/Gen.cpp | 6 | ||||
-rw-r--r-- | cpp/src/slice2java/Gen.h | 4 | ||||
-rw-r--r-- | cpp/test/Ice/interceptor/AMDInterceptorI.cpp | 11 | ||||
-rw-r--r-- | cpp/test/IceStorm/rep1/Subscriber.cpp | 1 | ||||
-rw-r--r-- | cpp/test/IceStorm/single/Subscriber.cpp | 1 | ||||
-rw-r--r-- | cpp/test/IceUtil/priority/PriorityInversion.cpp | 2 | ||||
-rw-r--r-- | php/src/IcePHP/Types.cpp | 1 |
18 files changed, 46 insertions, 46 deletions
diff --git a/cpp/src/Freeze/TransactionalEvictorContext.h b/cpp/src/Freeze/TransactionalEvictorContext.h index d02eb627e88..1b830c3bd11 100644 --- a/cpp/src/Freeze/TransactionalEvictorContext.h +++ b/cpp/src/Freeze/TransactionalEvictorContext.h @@ -145,8 +145,6 @@ private: TransactionIPtr _tx; IceUtil::ThreadControl _owner; - bool _rollbackOnly; - IceUtil::UniquePtr<DeadlockException> _deadlockException; IceUtil::UniquePtr<TransactionalEvictorDeadlockException> _nestedCallDeadlockException; diff --git a/cpp/src/Freeze/TransactionalEvictorI.cpp b/cpp/src/Freeze/TransactionalEvictorI.cpp index c3d641cf00b..f5788fddfcd 100644 --- a/cpp/src/Freeze/TransactionalEvictorI.cpp +++ b/cpp/src/Freeze/TransactionalEvictorI.cpp @@ -344,10 +344,16 @@ Freeze::TransactionalEvictorI::dispatch(Request& request) { public: +#ifndef NDEBUG CtxHolder(bool ownCtx, const TransactionalEvictorContextPtr& ctx, const SharedDbEnvPtr& dbEnv) : _ownCtx(ownCtx), _ctx(ctx), _dbEnv(dbEnv) +#else + CtxHolder(bool ownCtx, const TransactionalEvictorContextPtr& ctx) : + _ownCtx(ownCtx), + _ctx(ctx) +#endif { } @@ -371,7 +377,9 @@ Freeze::TransactionalEvictorI::dispatch(Request& request) private: const bool _ownCtx; const TransactionalEvictorContextPtr _ctx; +#ifndef NDEBUG const SharedDbEnvPtr& _dbEnv; +#endif }; @@ -517,7 +525,11 @@ Freeze::TransactionalEvictorI::dispatch(Request& request) ctx = _dbEnv->createCurrent(); } +#ifndef NDEBUG CtxHolder ctxHolder(ownCtx, ctx, _dbEnv); +#else + CtxHolder ctxHolder(ownCtx, ctx); +#endif tx = ctx->transaction(); try diff --git a/cpp/src/Ice/InstrumentationI.cpp b/cpp/src/Ice/InstrumentationI.cpp index c370348120c..e5a15432fd1 100644 --- a/cpp/src/Ice/InstrumentationI.cpp +++ b/cpp/src/Ice/InstrumentationI.cpp @@ -559,7 +559,25 @@ private: const ConnectionInfoPtr& _connectionInfo; const EndpointPtr& _endpoint; + +// +// Clang 4.2 reports unused-private-field for the _requestId +// field that is only used in the nested Attributes class. +// +#ifdef __clang__ +# pragma clang diagnostic push +# pragma clang diagnostic ignored "-Wunused-private-field" +#endif + const int _requestId; + +// +// Restore diagnostic to previous state. +// +#ifdef __clang__ +# pragma clang diagnostic pop +#endif + const int _size; mutable string _id; mutable EndpointInfoPtr _endpointInfo; diff --git a/cpp/src/Ice/ThreadPool.cpp b/cpp/src/Ice/ThreadPool.cpp index 055174f3f84..56baebe8541 100644 --- a/cpp/src/Ice/ThreadPool.cpp +++ b/cpp/src/Ice/ThreadPool.cpp @@ -156,10 +156,8 @@ IceInternal::DispatchWorkItem::execute(ThreadPoolCurrent& current) } } -IceInternal::ThreadPoolWorkQueue::ThreadPoolWorkQueue(ThreadPool* threadPool, - const InstancePtr& instance, +IceInternal::ThreadPoolWorkQueue::ThreadPoolWorkQueue(const InstancePtr& instance, Selector& selector) : - _threadPool(threadPool), _instance(instance), _selector(selector), _destroyed(false) @@ -480,7 +478,7 @@ IceInternal::ThreadPool::ThreadPool(const InstancePtr& instance, const string& p const_cast<int&>(_priority) = properties->getPropertyAsInt("Ice.ThreadPriority"); } - _workQueue = new ThreadPoolWorkQueue(this, _instance, _selector); + _workQueue = new ThreadPoolWorkQueue(_instance, _selector); if(_instance->traceLevels()->threadPool >= 1) { diff --git a/cpp/src/Ice/ThreadPool.h b/cpp/src/Ice/ThreadPool.h index 626f458b2fc..94dbc35b340 100644 --- a/cpp/src/Ice/ThreadPool.h +++ b/cpp/src/Ice/ThreadPool.h @@ -193,7 +193,7 @@ class ThreadPoolWorkQueue : public EventHandler, public IceUtil::Mutex { public: - ThreadPoolWorkQueue(ThreadPool*, const InstancePtr&, Selector&); + ThreadPoolWorkQueue(const InstancePtr&, Selector&); ~ThreadPoolWorkQueue(); void destroy(); @@ -212,7 +212,6 @@ public: private: - const ThreadPool* _threadPool; const InstancePtr _instance; Selector& _selector; bool _destroyed; diff --git a/cpp/src/IceGrid/NodeSessionManager.cpp b/cpp/src/IceGrid/NodeSessionManager.cpp index 9571e9de569..28777503a59 100644 --- a/cpp/src/IceGrid/NodeSessionManager.cpp +++ b/cpp/src/IceGrid/NodeSessionManager.cpp @@ -228,7 +228,6 @@ NodeSessionKeepAliveThread::keepAlive(const NodeSessionPrx& session) } NodeSessionManager::NodeSessionManager() : - _serial(1), _destroyed(false), _activated(false) { diff --git a/cpp/src/IceGrid/NodeSessionManager.h b/cpp/src/IceGrid/NodeSessionManager.h index 71bd1d032ea..8cda259b0cb 100644 --- a/cpp/src/IceGrid/NodeSessionManager.h +++ b/cpp/src/IceGrid/NodeSessionManager.h @@ -127,7 +127,6 @@ private: ThreadPtr _thread; std::vector<QueryPrx> _queryObjects; InternalRegistryPrx _master; - unsigned long _serial; bool _destroyed; bool _activated; diff --git a/cpp/src/IceGrid/ObjectCache.cpp b/cpp/src/IceGrid/ObjectCache.cpp index f78b75ed1a1..988fd6dc7a9 100644 --- a/cpp/src/IceGrid/ObjectCache.cpp +++ b/cpp/src/IceGrid/ObjectCache.cpp @@ -86,7 +86,7 @@ ObjectCache::add(const ObjectInfo& info, const string& application) return; } - ObjectEntryPtr entry = new ObjectEntry(*this, info, application); + ObjectEntryPtr entry = new ObjectEntry(info, application); addImpl(id, entry); map<string, TypeEntry>::iterator p = _types.find(entry->getType()); @@ -194,8 +194,7 @@ ObjectCache::getAllByType(const string& type) return infos; } -ObjectEntry::ObjectEntry(ObjectCache& cache, const ObjectInfo& info, const string& application) : - _cache(cache), +ObjectEntry::ObjectEntry(const ObjectInfo& info, const string& application) : _info(info), _application(application) { diff --git a/cpp/src/IceGrid/ObjectCache.h b/cpp/src/IceGrid/ObjectCache.h index 523b90f231e..7bd7a786357 100644 --- a/cpp/src/IceGrid/ObjectCache.h +++ b/cpp/src/IceGrid/ObjectCache.h @@ -24,7 +24,7 @@ class ObjectEntry : public IceUtil::Shared { public: - ObjectEntry(ObjectCache&, const ObjectInfo&, const std::string&); + ObjectEntry(const ObjectInfo&, const std::string&); Ice::ObjectPrx getProxy() const; std::string getType() const; std::string getApplication() const; @@ -34,7 +34,6 @@ public: private: - ObjectCache& _cache; const ObjectInfo _info; const std::string _application; }; diff --git a/cpp/src/slice2cpp/Gen.cpp b/cpp/src/slice2cpp/Gen.cpp index 983f933a7d9..3092153c176 100644 --- a/cpp/src/slice2cpp/Gen.cpp +++ b/cpp/src/slice2cpp/Gen.cpp @@ -1347,7 +1347,7 @@ Slice::Gen::TypesVisitor::emitUpcall(const ExceptionPtr& base, const string& cal } Slice::Gen::ProxyDeclVisitor::ProxyDeclVisitor(Output& h, Output& c, const string& dllExport) : - H(h), C(c), _dllExport(dllExport) + H(h), _dllExport(dllExport) { } @@ -2447,7 +2447,7 @@ Slice::Gen::ProxyVisitor::visitOperation(const OperationPtr& p) } Slice::Gen::DelegateVisitor::DelegateVisitor(Output& h, Output& c, const string& dllExport) : - H(h), C(c), _dllExport(dllExport), _useWstring(false) + H(h), _dllExport(dllExport), _useWstring(false) { } @@ -4860,7 +4860,7 @@ Slice::Gen::ObjectVisitor::emitUpcall(const ClassDefPtr& base, const string& cal } Slice::Gen::AsyncCallbackVisitor::AsyncCallbackVisitor(Output& h, Output& c, const string& dllExport) : - H(h), C(c), _dllExport(dllExport), _useWstring(false) + H(h), _dllExport(dllExport), _useWstring(false) { } @@ -4921,7 +4921,7 @@ Slice::Gen::AsyncCallbackVisitor::visitOperation(const OperationPtr& p) Slice::Gen::AsyncCallbackTemplateVisitor::AsyncCallbackTemplateVisitor(Output& h, Output& c, const string& dllExport) - : H(h), C(c), _dllExport(dllExport), _useWstring(false) + : H(h), _dllExport(dllExport), _useWstring(false) { } @@ -5628,7 +5628,7 @@ Slice::Gen::ImplVisitor::visitClassDefStart(const ClassDefPtr& p) } Slice::Gen::AsyncVisitor::AsyncVisitor(Output& h, Output& c, const string& dllExport) : - H(h), C(c), _dllExport(dllExport), _useWstring(false) + H(h), _dllExport(dllExport), _useWstring(false) { } diff --git a/cpp/src/slice2cpp/Gen.h b/cpp/src/slice2cpp/Gen.h index a8377f6fa35..9bcb600291c 100644 --- a/cpp/src/slice2cpp/Gen.h +++ b/cpp/src/slice2cpp/Gen.h @@ -119,7 +119,6 @@ private: private: ::IceUtilInternal::Output& H; - ::IceUtilInternal::Output& C; std::string _dllExport; }; @@ -165,7 +164,6 @@ private: private: ::IceUtilInternal::Output& H; - ::IceUtilInternal::Output& C; std::string _dllExport; int _useWstring; @@ -288,7 +286,6 @@ private: private: ::IceUtilInternal::Output& H; - ::IceUtilInternal::Output& C; std::string _dllExport; int _useWstring; @@ -314,7 +311,6 @@ private: void generateOperation(const OperationPtr&, bool); ::IceUtilInternal::Output& H; - ::IceUtilInternal::Output& C; std::string _dllExport; int _useWstring; @@ -367,7 +363,6 @@ private: private: ::IceUtilInternal::Output& H; - ::IceUtilInternal::Output& C; std::string _dllExport; int _useWstring; diff --git a/cpp/src/slice2java/Gen.cpp b/cpp/src/slice2java/Gen.cpp index 61cf44c18fc..6731f6ae863 100644 --- a/cpp/src/slice2java/Gen.cpp +++ b/cpp/src/slice2java/Gen.cpp @@ -2023,7 +2023,7 @@ Slice::Gen::generate(const UnitPtr& p, bool stream) CompactIdVisitor compactIdVisitor(_dir); p->visit(&compactIdVisitor, false); - HolderVisitor holderVisitor(_dir, stream); + HolderVisitor holderVisitor(_dir); p->visit(&holderVisitor, false); HelperVisitor helperVisitor(_dir, stream); @@ -4173,8 +4173,8 @@ Slice::Gen::CompactIdVisitor::visitClassDefStart(const ClassDefPtr& p) return false; } -Slice::Gen::HolderVisitor::HolderVisitor(const string& dir, bool stream) : - JavaVisitor(dir), _stream(stream) +Slice::Gen::HolderVisitor::HolderVisitor(const string& dir) : + JavaVisitor(dir) { } diff --git a/cpp/src/slice2java/Gen.h b/cpp/src/slice2java/Gen.h index 698cc9a01a6..1f612882062 100644 --- a/cpp/src/slice2java/Gen.h +++ b/cpp/src/slice2java/Gen.h @@ -204,7 +204,7 @@ private: { public: - HolderVisitor(const std::string&, bool); + HolderVisitor(const std::string&); virtual bool visitClassDefStart(const ClassDefPtr&); virtual bool visitStructStart(const StructPtr&); @@ -215,8 +215,6 @@ private: private: void writeHolder(const TypePtr&); - - bool _stream; }; class HelperVisitor : public JavaVisitor diff --git a/cpp/test/Ice/interceptor/AMDInterceptorI.cpp b/cpp/test/Ice/interceptor/AMDInterceptorI.cpp index 7beaa633c4b..0a96abf38fc 100644 --- a/cpp/test/Ice/interceptor/AMDInterceptorI.cpp +++ b/cpp/test/Ice/interceptor/AMDInterceptorI.cpp @@ -28,11 +28,6 @@ AMDInterceptorI::dispatch(Ice::Request& request) { public: - CallbackI(AMDInterceptorI& interceptor) : - _interceptor(interceptor) - { - } - virtual bool response(bool ok) { test(ok); @@ -53,17 +48,13 @@ AMDInterceptorI::dispatch(Ice::Request& request) test(false); return false; } - - private: - - AMDInterceptorI& _interceptor; }; Ice::Current& current = const_cast<Ice::Current&>(request.getCurrent()); _lastOperation = current.operation; - Ice::DispatchInterceptorAsyncCallbackPtr cb = new CallbackI(*this); + Ice::DispatchInterceptorAsyncCallbackPtr cb = new CallbackI(); if(_lastOperation == "amdAddWithRetry") { diff --git a/cpp/test/IceStorm/rep1/Subscriber.cpp b/cpp/test/IceStorm/rep1/Subscriber.cpp index a45e499488e..1ac18e4c88d 100644 --- a/cpp/test/IceStorm/rep1/Subscriber.cpp +++ b/cpp/test/IceStorm/rep1/Subscriber.cpp @@ -69,7 +69,6 @@ private: const string _name; const int _max; int _count; - bool _ordered; int _last; }; typedef IceUtil::Handle<SingleI> SingleIPtr; diff --git a/cpp/test/IceStorm/single/Subscriber.cpp b/cpp/test/IceStorm/single/Subscriber.cpp index b87e2f0ab46..453ae2ce090 100644 --- a/cpp/test/IceStorm/single/Subscriber.cpp +++ b/cpp/test/IceStorm/single/Subscriber.cpp @@ -98,7 +98,6 @@ private: CommunicatorPtr _communicator; const string _name; int _count; - bool _ordered; int _last; }; typedef IceUtil::Handle<SingleI> SingleIPtr; diff --git a/cpp/test/IceUtil/priority/PriorityInversion.cpp b/cpp/test/IceUtil/priority/PriorityInversion.cpp index ca65f177527..b94cb4573f1 100644 --- a/cpp/test/IceUtil/priority/PriorityInversion.cpp +++ b/cpp/test/IceUtil/priority/PriorityInversion.cpp @@ -45,7 +45,6 @@ public: _mediumBegin(0), _mediumEnd(0), _highBegin(0), - _highEnd(0), _cores(cores), _high(high), _medium(medium), @@ -117,7 +116,6 @@ private: int _mediumBegin; int _mediumEnd; int _highBegin; - int _highEnd; int _cores; int _high; int _medium; diff --git a/php/src/IcePHP/Types.cpp b/php/src/IcePHP/Types.cpp index 9f689740953..3b27f0d5129 100644 --- a/php/src/IcePHP/Types.cpp +++ b/php/src/IcePHP/Types.cpp @@ -246,7 +246,6 @@ private: #if ZTS TSRMLS_D; #endif -zend_object_handle _h; }; } |