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-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=077a359bfcde6b24f598df6d876a51f4e58a5cd1;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 6f7efad5..b7f76256 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;};