diff --git a/test/bienstman1.cpp b/test/bienstman1.cpp index 281c89aa..dc006578 100644 --- a/test/bienstman1.cpp +++ b/test/bienstman1.cpp @@ -11,7 +11,7 @@ struct A {}; struct V { - + virtual ~V() {}; // silence compiler warningsa virtual void f() = 0; const A* inside() {return &a;} diff --git a/test/bienstman3.cpp b/test/bienstman3.cpp index 1a8a7714..d765b303 100644 --- a/test/bienstman3.cpp +++ b/test/bienstman3.cpp @@ -7,6 +7,7 @@ struct V { + virtual ~V() {}; // silence compiler warningsa virtual void f() = 0; }; diff --git a/test/implicit.cpp b/test/implicit.cpp index 61ca21a7..a1bae59e 100644 --- a/test/implicit.cpp +++ b/test/implicit.cpp @@ -24,6 +24,7 @@ X make_x(int n) { return X(n); } struct bar {}; struct foo { + virtual ~foo() {}; // silence compiler warnings virtual void f() = 0; operator bar() const { return bar(); } }; diff --git a/test/pointer_vector.cpp b/test/pointer_vector.cpp index c1f7dbd4..08cd4861 100644 --- a/test/pointer_vector.cpp +++ b/test/pointer_vector.cpp @@ -10,6 +10,7 @@ using namespace boost::python; class Abstract { public: + virtual ~Abstract() {}; // silence compiler warningsa virtual std::string f() =0; }; 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;