Fixed unused variable warnings

This commit is contained in:
Robert Osfield 2016-08-26 19:18:00 +01:00
parent 322adc266c
commit 0ad09d6dad
3 changed files with 4 additions and 6 deletions

View File

@ -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&);

View File

@ -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;

View File

@ -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,10 +154,7 @@ Referenced::Referenced(bool threadSafeRefUnref):
#endif
{
#if !defined(_OSG_REFERENCED_USE_ATOMIC_OPERATIONS)
#ifndef ENFORCE_THREADSAFE
if (threadSafeRefUnref)
#endif
_refMutex = new OpenThreads::Mutex;
_refMutex = new OpenThreads::Mutex;
#endif
#ifdef DEBUG_OBJECT_ALLOCATION_DESTRUCTION