From 718e2ea0f5bda847136f98bee349679789e38d89 Mon Sep 17 00:00:00 2001 From: "alexey.lysiuk" Date: Sun, 7 Jun 2020 11:32:35 +0300 Subject: [PATCH] - fixed compilation warnings reported by Clang src/g_level.cpp:1575:16: warning: delete called on non-final 'DoomLevelAABBTree' that has virtual functions but non-virtual destructor [-Wdelete-non-abstract-non-virtual-dtor] src/p_setup.cpp:367:16: warning: delete called on non-final 'DoomLevelAABBTree' that has virtual functions but non-virtual destructor [-Wdelete-non-abstract-non-virtual-dtor] --- src/common/rendering/hwrenderer/data/hw_aabbtree.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/common/rendering/hwrenderer/data/hw_aabbtree.h b/src/common/rendering/hwrenderer/data/hw_aabbtree.h index 19f3e7531..389a991ab 100644 --- a/src/common/rendering/hwrenderer/data/hw_aabbtree.h +++ b/src/common/rendering/hwrenderer/data/hw_aabbtree.h @@ -67,6 +67,9 @@ public: size_t DynamicLinesOffset() const { return dynamicStartLine * sizeof(AABBTreeLine); } virtual bool Update() = 0; + + virtual ~LevelAABBTree() = default; + protected: TArray FindNodePath(unsigned int line, unsigned int node);