From ab0911cf53c526c40e1e8e7d0d3efcfce4dbf803 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Hunold?= Date: Sat, 1 Dec 2007 19:27:06 +0000 Subject: [PATCH] Silence compiler by adding cosmetic virtual destructors. [SVN r41544] --- test/shared_ptr.cpp | 1 + test/wrapper_held_type.cpp | 1 + 2 files changed, 2 insertions(+) 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;