From 40e494087725bfd2f0ca285e6e74140dbf21f70e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Hunold?= Date: Sat, 1 Dec 2007 20:24:51 +0000 Subject: [PATCH] Silence compiler by adding cosmetic virtual destructors. [SVN r41549] --- test/bienstman1.cpp | 2 +- test/bienstman3.cpp | 1 + test/implicit.cpp | 1 + test/pointer_vector.cpp | 1 + 4 files changed, 4 insertions(+), 1 deletion(-) 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; };