From 596ab564c8e93ccf54a7d3b6b77da50aecdb7c55 Mon Sep 17 00:00:00 2001 From: Kristian Bendiksen Date: Fri, 20 Sep 2024 12:58:00 +0200 Subject: [PATCH] Fix "nonnull asserts" warnings on gcc 13. The C++ standard guarantees that the this pointer is never nullptr in valid programs. --- Fwk/VizFwk/LibCore/cvfObject.inl | 2 -- 1 file changed, 2 deletions(-) diff --git a/Fwk/VizFwk/LibCore/cvfObject.inl b/Fwk/VizFwk/LibCore/cvfObject.inl index 10b8876155..e733187aa9 100644 --- a/Fwk/VizFwk/LibCore/cvfObject.inl +++ b/Fwk/VizFwk/LibCore/cvfObject.inl @@ -70,7 +70,6 @@ inline Object::~Object() //-------------------------------------------------------------------------------------------------- inline int Object::addRef() const { - CVF_TIGHT_ASSERT(this); return ++m_refCount; } @@ -103,7 +102,6 @@ inline int Object::release() const //-------------------------------------------------------------------------------------------------- inline int Object::refCount() const { - CVF_TIGHT_ASSERT(this); return m_refCount; }