From David Callu, warning fixes and removal of spaces at end of lines.
This commit is contained in:
@@ -110,6 +110,8 @@ void Referenced::setThreadSafeReferenceCounting(bool enableThreadSafeReferenceCo
|
||||
{
|
||||
#if !defined(_OSG_REFERENCED_USE_ATOMIC_OPERATIONS)
|
||||
s_useThreadSafeReferenceCounting = enableThreadSafeReferenceCounting;
|
||||
#else
|
||||
OSG_UNUSED(enableThreadSafeReferenceCounting);
|
||||
#endif
|
||||
}
|
||||
|
||||
@@ -182,8 +184,12 @@ Referenced::Referenced(bool threadSafeRefUnref):
|
||||
#if !defined(_OSG_REFERENCED_USE_ATOMIC_OPERATIONS)
|
||||
#ifndef ENFORCE_THREADSAFE
|
||||
if (threadSafeRefUnref)
|
||||
#else
|
||||
OSG_UNUSED(threadSafeRefUnref);
|
||||
#endif
|
||||
_refMutex = new OpenThreads::Mutex;
|
||||
#else
|
||||
OSG_UNUSED(threadSafeRefUnref);
|
||||
#endif
|
||||
|
||||
#ifdef DEBUG_OBJECT_ALLOCATION_DESTRUCTION
|
||||
@@ -347,6 +353,8 @@ void Referenced::setThreadSafeRefUnref(bool threadSafe)
|
||||
delete tmpMutexPtr;
|
||||
}
|
||||
}
|
||||
#else
|
||||
OSG_UNUSED(threadSafe);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user