Fixed unused variable warnings
This commit is contained in:
parent
322adc266c
commit
0ad09d6dad
@ -47,6 +47,7 @@ class OSG_EXPORT Referenced
|
||||
|
||||
Referenced();
|
||||
|
||||
/// deprecated, Referenced is now always uses thread safe ref/unref, use default Refernced() constructor instead
|
||||
explicit Referenced(bool threadSafeRefUnref);
|
||||
|
||||
Referenced(const Referenced&);
|
||||
|
@ -54,7 +54,7 @@ bool CallbackObject::run(osg::Object* object, osg::Object* data)
|
||||
return run(object,inputParameters, outputParameters);
|
||||
}
|
||||
|
||||
bool CallbackObject::run(osg::Object* object, osg::Parameters& inputParameters, osg::Parameters& outputParameters) const
|
||||
bool CallbackObject::run(osg::Object* object, osg::Parameters& /*inputParameters*/, osg::Parameters& /*outputParameters*/) const
|
||||
{
|
||||
OSG_NOTICE<<"CallbackObject::run(object="<<object<<")"<<std::endl;
|
||||
return false;
|
||||
|
@ -143,7 +143,7 @@ Referenced::Referenced():
|
||||
|
||||
}
|
||||
|
||||
Referenced::Referenced(bool threadSafeRefUnref):
|
||||
Referenced::Referenced(bool /*threadSafeRefUnref*/):
|
||||
#if defined(_OSG_REFERENCED_USE_ATOMIC_OPERATIONS)
|
||||
_observerSet(0),
|
||||
_refCount(0)
|
||||
@ -154,9 +154,6 @@ Referenced::Referenced(bool threadSafeRefUnref):
|
||||
#endif
|
||||
{
|
||||
#if !defined(_OSG_REFERENCED_USE_ATOMIC_OPERATIONS)
|
||||
#ifndef ENFORCE_THREADSAFE
|
||||
if (threadSafeRefUnref)
|
||||
#endif
|
||||
_refMutex = new OpenThreads::Mutex;
|
||||
#endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user