Index: libs/python/test/shared_ptr.cpp
===================================================================
--- libs/python/test/shared_ptr.cpp	(revision 41533)
+++ libs/python/test/shared_ptr.cpp	(working copy)
@@ -129,6 +129,7 @@
 // regressions from Nicodemus
     struct A
     {
+        virtual ~A() {}; // silence compiler warnings
         virtual int f() = 0;
         static int call_f(shared_ptr<A>& a) { return a->f(); }
     };
Index: libs/python/test/wrapper_held_type.cpp
===================================================================
--- libs/python/test/wrapper_held_type.cpp	(revision 41533)
+++ libs/python/test/wrapper_held_type.cpp	(working copy)
@@ -13,6 +13,7 @@
 
 struct data
 {
+    virtual ~data() {}; // silence compiler warnings
     virtual int id() const
     {
         return 42;
