]> granicus.if.org Git - gc/commitdiff
Eliminate 'non-virtual destructor for class with inheritors' CSA warning
authorIvan Maidanski <ivmai@mail.ru>
Mon, 12 Nov 2018 18:16:42 +0000 (21:16 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Mon, 12 Nov 2018 18:17:26 +0000 (21:17 +0300)
* tests/test_cpp.cc (A): Add virtual empty destructor.

tests/test_cpp.cc

index 6f7efad5d884a4829ebb1d64ea84d97a4a19fbc6..b7f76256e0eb76d3b9715ff57ef657c4d0aeb314 100644 (file)
@@ -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;};