|
Boost-Commit : |
From: juergen.hunold_at_[hidden]
Date: 2007-12-01 15:24:51
Author: jhunold
Date: 2007-12-01 15:24:51 EST (Sat, 01 Dec 2007)
New Revision: 41549
URL: http://svn.boost.org/trac/boost/changeset/41549
Log:
Silence compiler by adding cosmetic virtual destructors.
Text files modified:
trunk/libs/python/test/bienstman1.cpp | 2 +-
trunk/libs/python/test/bienstman3.cpp | 1 +
trunk/libs/python/test/implicit.cpp | 1 +
trunk/libs/python/test/pointer_vector.cpp | 1 +
4 files changed, 4 insertions(+), 1 deletions(-)
Modified: trunk/libs/python/test/bienstman1.cpp
==============================================================================
--- trunk/libs/python/test/bienstman1.cpp (original)
+++ trunk/libs/python/test/bienstman1.cpp 2007-12-01 15:24:51 EST (Sat, 01 Dec 2007)
@@ -11,7 +11,7 @@
struct V
{
-
+ virtual ~V() {}; // silence compiler warningsa
virtual void f() = 0;
const A* inside() {return &a;}
Modified: trunk/libs/python/test/bienstman3.cpp
==============================================================================
--- trunk/libs/python/test/bienstman3.cpp (original)
+++ trunk/libs/python/test/bienstman3.cpp 2007-12-01 15:24:51 EST (Sat, 01 Dec 2007)
@@ -7,6 +7,7 @@
struct V
{
+ virtual ~V() {}; // silence compiler warningsa
virtual void f() = 0;
};
Modified: trunk/libs/python/test/implicit.cpp
==============================================================================
--- trunk/libs/python/test/implicit.cpp (original)
+++ trunk/libs/python/test/implicit.cpp 2007-12-01 15:24:51 EST (Sat, 01 Dec 2007)
@@ -24,6 +24,7 @@
struct bar {};
struct foo
{
+ virtual ~foo() {}; // silence compiler warnings
virtual void f() = 0;
operator bar() const { return bar(); }
};
Modified: trunk/libs/python/test/pointer_vector.cpp
==============================================================================
--- trunk/libs/python/test/pointer_vector.cpp (original)
+++ trunk/libs/python/test/pointer_vector.cpp 2007-12-01 15:24:51 EST (Sat, 01 Dec 2007)
@@ -10,6 +10,7 @@
class Abstract
{
public:
+ virtual ~Abstract() {}; // silence compiler warningsa
virtual std::string f() =0;
};
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk