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

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