From: Ivan Maidanski Date: Mon, 12 Nov 2018 18:16:42 +0000 (+0300) Subject: Eliminate 'non-virtual destructor for class with inheritors' CSA warning X-Git-Tag: v8.0.2~51 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=80ced2256efb230c04b8cb443165ed321f7b5eda;p=gc Eliminate 'non-virtual destructor for class with inheritors' CSA warning * tests/test_cpp.cc (A): Add virtual empty destructor. --- diff --git a/tests/test_cpp.cc b/tests/test_cpp.cc index 216e5231..176b5266 100644 --- a/tests/test_cpp.cc +++ b/tests/test_cpp.cc @@ -89,6 +89,7 @@ class A {public: GC_ATTR_EXPLICIT A( int iArg ): i( iArg ) {} void Test( int iArg ) { my_assert( i == iArg );} + virtual ~A() {} int i;};