From c02364b8e610bc23edea29aaab68986eab3420bc Mon Sep 17 00:00:00 2001 From: Ivan Maidanski Date: Fri, 21 Jul 2017 18:32:22 +0300 Subject: [PATCH] Eliminate CSA warning of non-virtual destructor in test_cpp base class * tests/test_cpp.cc (B::~B): Make the destructor virtual. --- tests/test_cpp.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_cpp.cc b/tests/test_cpp.cc index 42a5e06a..2b774fb0 100644 --- a/tests/test_cpp.cc +++ b/tests/test_cpp.cc @@ -91,7 +91,7 @@ class B: public GC_NS_QUALIFY(gc), public A { public: /* A collectible class. */ GC_ATTR_EXPLICIT B( int j ): A( j ) {} - ~B() { + virtual ~B() { my_assert( deleting );} static void Deleting( int on ) { deleting = on;} -- 2.40.0