Browse Source

add a destructor to silence the compiler warnings

David Rose 18 years ago
parent
commit
b625e79758
2 changed files with 12 additions and 0 deletions
  1. 11 0
      dtool/src/dtoolbase/memoryHook.cxx
  2. 1 0
      dtool/src/dtoolbase/memoryHook.h

+ 11 - 0
dtool/src/dtoolbase/memoryHook.cxx

@@ -140,6 +140,17 @@ MemoryHook(const MemoryHook &copy) :
 #endif
 }
 
+////////////////////////////////////////////////////////////////////
+//     Function: MemoryHook::Destructor
+//       Access: Public, Virtual
+//  Description: 
+////////////////////////////////////////////////////////////////////
+MemoryHook::
+~MemoryHook() {
+  // Really, we only have this destructor to shut up gcc about the
+  // virtual functions warning.
+}
+
 ////////////////////////////////////////////////////////////////////
 //     Function: MemoryHook::heap_alloc
 //       Access: Public, Virtual

+ 1 - 0
dtool/src/dtoolbase/memoryHook.h

@@ -33,6 +33,7 @@ class EXPCL_DTOOL MemoryHook {
 public:
   MemoryHook();
   MemoryHook(const MemoryHook &copy);
+  virtual ~MemoryHook();
 
   virtual void *heap_alloc(size_t size);
   virtual void heap_free(void *ptr);