diff --git a/test/shared_ptr.cpp b/test/shared_ptr.cpp index ee007abd..e5f20a73 100644 --- a/test/shared_ptr.cpp +++ b/test/shared_ptr.cpp @@ -129,6 +129,7 @@ shared_ptr factory(int n) // regressions from Nicodemus struct A { + virtual ~A() {}; // silence compiler warnings virtual int f() = 0; static int call_f(shared_ptr& a) { return a->f(); } }; diff --git a/test/wrapper_held_type.cpp b/test/wrapper_held_type.cpp index d5afface..e9942279 100755 --- a/test/wrapper_held_type.cpp +++ b/test/wrapper_held_type.cpp @@ -13,6 +13,7 @@ struct data { + virtual ~data() {}; // silence compiler warnings virtual int id() const { return 42;