浏览代码

squelch compiler warning

David Rose 22 年之前
父节点
当前提交
5d2f14ac16

+ 1 - 1
panda/src/collide/collisionHandlerGravity.cxx

@@ -66,8 +66,8 @@ set_highest_collision(const NodePath &target_node_path, const NodePath &from_nod
   // Get the maximum height for all collisions with this node.
   bool got_max = false;
   float max_height = 0.0f;
+  CollisionEntry *highest = NULL;
 
-  CollisionEntry* highest;
   _outer_space = entries.empty();
   Entries::const_iterator ei;
   for (ei = entries.begin(); ei != entries.end(); ++ei) {

+ 9 - 0
panda/src/particlesystem/particleSystemManager.cxx

@@ -35,6 +35,15 @@ ParticleSystemManager(int every_nth_frame) :
   _nth_frame(every_nth_frame), _cur_frame(0) {
 }
 
+////////////////////////////////////////////////////////////////////
+//    Function : ParticleSystemManager
+//      Access : Public, Virtual
+// Description : Destructor
+////////////////////////////////////////////////////////////////////
+ParticleSystemManager::
+~ParticleSystemManager() {
+}
+
 ////////////////////////////////////////////////////////////////////
 //    Function : remove_particlesystem
 //      Access : public

+ 1 - 0
panda/src/particlesystem/particleSystemManager.h

@@ -34,6 +34,7 @@
 class EXPCL_PANDAPHYSICS ParticleSystemManager {
 PUBLISHED:
   ParticleSystemManager(int every_nth_frame = 1);
+  virtual ~ParticleSystemManager();
 
   INLINE void set_frame_stepping(int every_nth_frame);
   INLINE int get_frame_stepping() const;