remove all warnings on Mac OSX Snow Leopard
This commit is contained in:
@@ -603,12 +603,12 @@ int OBJ::LoadMesh(const char *fname,GeometryInterface *iface)
|
||||
return ret;
|
||||
}
|
||||
|
||||
static const char * GetArg(const char **argv,int i,int argc)
|
||||
{
|
||||
const char * ret = 0;
|
||||
if ( i < argc ) ret = argv[i];
|
||||
return ret;
|
||||
}
|
||||
//static const char * GetArg(const char **argv,int i,int argc)
|
||||
//{
|
||||
// const char * ret = 0;
|
||||
// if ( i < argc ) ret = argv[i];
|
||||
// return ret;
|
||||
//}
|
||||
|
||||
void OBJ::getVertex(GeometryVertex &v,const char *face) const
|
||||
{
|
||||
|
||||
@@ -382,7 +382,7 @@ void bDNA::init(char *data, int len, bool swap)
|
||||
|
||||
{
|
||||
nr= (long)cp;
|
||||
long mask=3;
|
||||
//long mask=3;
|
||||
nr= ((nr+3)&~3)-nr;
|
||||
while (nr--)
|
||||
{
|
||||
@@ -415,7 +415,7 @@ void bDNA::init(char *data, int len, bool swap)
|
||||
|
||||
{
|
||||
nr= (long)cp;
|
||||
long mask=3;
|
||||
// long mask=3;
|
||||
nr= ((nr+3)&~3)-nr;
|
||||
while (nr--)
|
||||
{
|
||||
|
||||
@@ -88,7 +88,7 @@ void btBulletFile::parseData()
|
||||
printf ("Chunk size = %d",CHUNK_HEADER_LEN);
|
||||
printf ("File chunk size = %d",ChunkUtils::getOffset(mFlags));
|
||||
|
||||
const bool swap = (mFlags&FD_ENDIAN_SWAP)!=0;
|
||||
//const bool swap = (mFlags&FD_ENDIAN_SWAP)!=0;
|
||||
|
||||
|
||||
mDataStart = 12;
|
||||
|
||||
@@ -226,9 +226,9 @@ btCollisionShape* btBulletWorldImporter::convertCollisionShape( btCollisionShap
|
||||
}
|
||||
case CONVEX_HULL_SHAPE_PROXYTYPE:
|
||||
{
|
||||
int sz = sizeof(btConvexHullShapeData);
|
||||
int sz2 = sizeof(btConvexInternalShapeData);
|
||||
int sz3 = sizeof(btCollisionShapeData);
|
||||
// int sz = sizeof(btConvexHullShapeData);
|
||||
// int sz2 = sizeof(btConvexInternalShapeData);
|
||||
// int sz3 = sizeof(btCollisionShapeData);
|
||||
btConvexHullShapeData* convexData = (btConvexHullShapeData*)bsd;
|
||||
int numPoints = convexData->m_numUnscaledPoints;
|
||||
|
||||
@@ -407,11 +407,11 @@ bool btBulletWorldImporter::loadFileFromMemory( bParse::btBulletFile* bulletFil
|
||||
}
|
||||
}
|
||||
|
||||
for (i=0;i<bulletFile2->m_collisionObjects.size();i++)
|
||||
{
|
||||
btCollisionObjectData* colObjData = (btCollisionObjectData*)bulletFile2->m_collisionObjects[i];
|
||||
printf("bla");
|
||||
}
|
||||
// for (i=0;i<bulletFile2->m_collisionObjects.size();i++)
|
||||
// {
|
||||
// btCollisionObjectData* colObjData = (btCollisionObjectData*)bulletFile2->m_collisionObjects[i];
|
||||
// printf("bla");
|
||||
// }
|
||||
|
||||
|
||||
for (i=0;i<bulletFile2->m_constraints.size();i++)
|
||||
|
||||
Reference in New Issue
Block a user