Get rid of some warnings, mainly unused parameters/variables.
Thanks sparkprime for the patch, see http://code.google.com/p/bullet/issues/detail?id=330
This commit is contained in:
@@ -276,6 +276,7 @@ public:
|
||||
//! virtual method for ray collision
|
||||
virtual void rayTest(const btVector3& rayFrom, const btVector3& rayTo, btCollisionWorld::RayResultCallback& resultCallback) const
|
||||
{
|
||||
(void) rayFrom; (void) rayTo; (void) resultCallback;
|
||||
}
|
||||
|
||||
//! Function for retrieve triangles.
|
||||
@@ -284,6 +285,7 @@ public:
|
||||
*/
|
||||
virtual void processAllTriangles(btTriangleCallback* callback,const btVector3& aabbMin,const btVector3& aabbMax) const
|
||||
{
|
||||
(void) callback; (void) aabbMin; (void) aabbMax;
|
||||
}
|
||||
|
||||
//!@}
|
||||
@@ -307,6 +309,7 @@ public:
|
||||
|
||||
|
||||
CompoundPrimitiveManager(const CompoundPrimitiveManager& compound)
|
||||
: btPrimitiveManagerBase()
|
||||
{
|
||||
m_compoundShape = compound.m_compoundShape;
|
||||
}
|
||||
@@ -349,6 +352,7 @@ public:
|
||||
virtual void get_primitive_triangle(int prim_index,btPrimitiveTriangle & triangle) const
|
||||
{
|
||||
btAssert(0);
|
||||
(void) prim_index; (void) triangle;
|
||||
}
|
||||
|
||||
};
|
||||
@@ -365,6 +369,7 @@ public:
|
||||
|
||||
btGImpactCompoundShape(bool children_has_transform = true)
|
||||
{
|
||||
(void) children_has_transform;
|
||||
m_primitive_manager.m_compoundShape = this;
|
||||
m_box_set.setPrimitiveManager(&m_primitive_manager);
|
||||
}
|
||||
@@ -478,11 +483,13 @@ public:
|
||||
|
||||
virtual void getBulletTriangle(int prim_index,btTriangleShapeEx & triangle) const
|
||||
{
|
||||
(void) prim_index; (void) triangle;
|
||||
btAssert(0);
|
||||
}
|
||||
|
||||
virtual void getBulletTetrahedron(int prim_index,btTetrahedronShapeEx & tetrahedron) const
|
||||
{
|
||||
(void) prim_index; (void) tetrahedron;
|
||||
btAssert(0);
|
||||
}
|
||||
|
||||
@@ -551,6 +558,7 @@ public:
|
||||
}
|
||||
|
||||
TrimeshPrimitiveManager(const TrimeshPrimitiveManager & manager)
|
||||
: btPrimitiveManagerBase()
|
||||
{
|
||||
m_meshInterface = manager.m_meshInterface;
|
||||
m_part = manager.m_part;
|
||||
@@ -748,6 +756,7 @@ public:
|
||||
//! Gets the children
|
||||
virtual btCollisionShape* getChildShape(int index)
|
||||
{
|
||||
(void) index;
|
||||
btAssert(0);
|
||||
return NULL;
|
||||
}
|
||||
@@ -757,6 +766,7 @@ public:
|
||||
//! Gets the child
|
||||
virtual const btCollisionShape* getChildShape(int index) const
|
||||
{
|
||||
(void) index;
|
||||
btAssert(0);
|
||||
return NULL;
|
||||
}
|
||||
@@ -764,6 +774,7 @@ public:
|
||||
//! Gets the children transform
|
||||
virtual btTransform getChildTransform(int index) const
|
||||
{
|
||||
(void) index;
|
||||
btAssert(0);
|
||||
return btTransform();
|
||||
}
|
||||
@@ -774,6 +785,8 @@ public:
|
||||
*/
|
||||
virtual void setChildTransform(int index, const btTransform & transform)
|
||||
{
|
||||
(void) index;
|
||||
(void) transform;
|
||||
btAssert(0);
|
||||
}
|
||||
|
||||
@@ -827,6 +840,8 @@ public:
|
||||
|
||||
virtual void getBulletTetrahedron(int prim_index,btTetrahedronShapeEx & tetrahedron) const
|
||||
{
|
||||
(void) prim_index;
|
||||
(void) tetrahedron;
|
||||
btAssert(0);
|
||||
}
|
||||
|
||||
@@ -1038,11 +1053,13 @@ public:
|
||||
|
||||
virtual void getBulletTriangle(int prim_index,btTriangleShapeEx & triangle) const
|
||||
{
|
||||
(void) prim_index; (void) triangle;
|
||||
btAssert(0);
|
||||
}
|
||||
|
||||
virtual void getBulletTetrahedron(int prim_index,btTetrahedronShapeEx & tetrahedron) const
|
||||
{
|
||||
(void) prim_index; (void) tetrahedron;
|
||||
btAssert(0);
|
||||
}
|
||||
|
||||
@@ -1065,12 +1082,14 @@ public:
|
||||
*/
|
||||
virtual void getChildAabb(int child_index,const btTransform& t,btVector3& aabbMin,btVector3& aabbMax) const
|
||||
{
|
||||
(void) child_index; (void) t; (void) aabbMin; (void) aabbMax;
|
||||
btAssert(0);
|
||||
}
|
||||
|
||||
//! Gets the children
|
||||
virtual btCollisionShape* getChildShape(int index)
|
||||
{
|
||||
(void) index;
|
||||
btAssert(0);
|
||||
return NULL;
|
||||
}
|
||||
@@ -1079,6 +1098,7 @@ public:
|
||||
//! Gets the child
|
||||
virtual const btCollisionShape* getChildShape(int index) const
|
||||
{
|
||||
(void) index;
|
||||
btAssert(0);
|
||||
return NULL;
|
||||
}
|
||||
@@ -1086,6 +1106,7 @@ public:
|
||||
//! Gets the children transform
|
||||
virtual btTransform getChildTransform(int index) const
|
||||
{
|
||||
(void) index;
|
||||
btAssert(0);
|
||||
return btTransform();
|
||||
}
|
||||
@@ -1096,6 +1117,7 @@ public:
|
||||
*/
|
||||
virtual void setChildTransform(int index, const btTransform & transform)
|
||||
{
|
||||
(void) index; (void) transform;
|
||||
btAssert(0);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user