Boost logo

Boost-Commit :

From: juergen.hunold_at_[hidden]
Date: 2007-12-03 13:51:27


Author: jhunold
Date: 2007-12-03 13:51:26 EST (Mon, 03 Dec 2007)
New Revision: 41650
URL: http://svn.boost.org/trac/boost/changeset/41650

Log:
Add cosmetic virtual detructors to silence compile warnings.

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 +
   trunk/libs/python/test/shared_ptr.cpp | 1 +
   trunk/libs/python/test/wrapper_held_type.cpp | 1 +
   6 files changed, 6 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-03 13:51:26 EST (Mon, 03 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-03 13:51:26 EST (Mon, 03 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-03 13:51:26 EST (Mon, 03 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-03 13:51:26 EST (Mon, 03 Dec 2007)
@@ -10,6 +10,7 @@
 class Abstract
 {
 public:
+ virtual ~Abstract() {}; // silence compiler warningsa
     virtual std::string f() =0;
 };
 

Modified: trunk/libs/python/test/shared_ptr.cpp
==============================================================================
--- trunk/libs/python/test/shared_ptr.cpp (original)
+++ trunk/libs/python/test/shared_ptr.cpp 2007-12-03 13:51:26 EST (Mon, 03 Dec 2007)
@@ -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(); }
     };

Modified: trunk/libs/python/test/wrapper_held_type.cpp
==============================================================================
--- trunk/libs/python/test/wrapper_held_type.cpp (original)
+++ trunk/libs/python/test/wrapper_held_type.cpp 2007-12-03 13:51:26 EST (Mon, 03 Dec 2007)
@@ -13,6 +13,7 @@
 
 struct data
 {
+ virtual ~data() {}; // silence compiler warnings
     virtual int id() const
     {
         return 42;


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