Clang : Exclude special code in release() to avoid warning

This commit is contained in:
Magne Sjaastad 2018-02-10 17:37:22 +01:00
parent c208569fb6
commit 13606f0295

View File

@ -87,8 +87,9 @@ inline int Object::release() const
{
// Release on a NULL object ok, just return 0
// This is symmetric with being able to call delete on a NULL pointer
#ifndef __clang__
if (!this) return 0;
#endif
CVF_TIGHT_ASSERT(m_refCount > 0);
if (--m_refCount == 0)