mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Clang : Exclude special code in release() to avoid warning
This commit is contained in:
@@ -87,8 +87,9 @@ inline int Object::release() const
|
|||||||
{
|
{
|
||||||
// Release on a NULL object ok, just return 0
|
// Release on a NULL object ok, just return 0
|
||||||
// This is symmetric with being able to call delete on a NULL pointer
|
// This is symmetric with being able to call delete on a NULL pointer
|
||||||
|
#ifndef __clang__
|
||||||
if (!this) return 0;
|
if (!this) return 0;
|
||||||
|
#endif
|
||||||
CVF_TIGHT_ASSERT(m_refCount > 0);
|
CVF_TIGHT_ASSERT(m_refCount > 0);
|
||||||
|
|
||||||
if (--m_refCount == 0)
|
if (--m_refCount == 0)
|
||||||
|
|||||||
Reference in New Issue
Block a user