Browse Source

squelch gcc4.0.1 warning

David Rose 20 years ago
parent
commit
eac02d6c0c
2 changed files with 11 additions and 2 deletions
  1. 10 1
      panda/src/chan/animChannel.I
  2. 1 1
      panda/src/chan/animChannel.h

+ 10 - 1
panda/src/chan/animChannel.I

@@ -38,7 +38,6 @@ AnimChannel(const string &name)
   : AnimChannelBase(name) {
 }
 
-
 ////////////////////////////////////////////////////////////////////
 //     Function: AnimChannel::Constructor
 //       Access: Public
@@ -52,6 +51,16 @@ AnimChannel(AnimGroup *parent, const string &name)
   : AnimChannelBase(parent, name) {
 }
 
+////////////////////////////////////////////////////////////////////
+//     Function: AnimChannel::Destructor
+//       Access: Public
+//  Description: 
+////////////////////////////////////////////////////////////////////
+template<class SwitchType>
+INLINE AnimChannel<SwitchType>::
+~AnimChannel() {
+}
+
 #ifdef WIN32_VC
 ////////////////////////////////////////////////////////////////////
 //     Function: AnimChannel::get_value

+ 1 - 1
panda/src/chan/animChannel.h

@@ -38,11 +38,11 @@ protected:
   // you must first create an AnimBundle, and use that to create any
   // subsequent children.
   INLINE AnimChannel(const string &name = "");
-
 public:
   typedef TYPENAME SwitchType::ValueType ValueType;
 
   INLINE AnimChannel(AnimGroup *parent, const string &name);
+  INLINE ~AnimChannel();
 
 PUBLISHED:
   virtual void get_value(int frame, ValueType &value)=0;