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:
parent
c208569fb6
commit
13606f0295
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user