From 7b56db9f97b619e284934e8e601113b1e2b5ec04 Mon Sep 17 00:00:00 2001 From: erwincoumans Date: Tue, 6 Jun 2017 06:59:41 -0700 Subject: [PATCH] fix compile issue/warning --- examples/pybullet/pybullet.c | 3 ++- src/LinearMath/btThreads.cpp | 2 +- src/LinearMath/btThreads.h | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/examples/pybullet/pybullet.c b/examples/pybullet/pybullet.c index 1f9c03dd8..770c301de 100644 --- a/examples/pybullet/pybullet.c +++ b/examples/pybullet/pybullet.c @@ -4850,9 +4850,10 @@ static PyObject* pybullet_createMultiBody(PyObject* self, PyObject* args, PyObje b3SharedMemoryCommandHandle commandHandle = b3CreateMultiBodyCommandInit(sm); double basePosition[3]={0,0,0}; double baseOrientation[4]={0,0,0,1}; + int baseIndex; pybullet_internalSetVectord(basePosObj,basePosition); pybullet_internalSetVector4d(baseOrnObj,baseOrientation); - int baseIndex = b3CreateMultiBodyBase(commandHandle,baseMass,baseCollisionShapeIndex,baseVisualShapeIndex,basePosition,baseOrientation); + baseIndex = b3CreateMultiBodyBase(commandHandle,baseMass,baseCollisionShapeIndex,baseVisualShapeIndex,basePosition,baseOrientation); if (useMaximalCoordinates>0) { b3CreateMultiBodyUseMaximalCoordinates(commandHandle); diff --git a/src/LinearMath/btThreads.cpp b/src/LinearMath/btThreads.cpp index 89f157c39..59a7ea36e 100644 --- a/src/LinearMath/btThreads.cpp +++ b/src/LinearMath/btThreads.cpp @@ -450,7 +450,7 @@ void btParallelFor( int iBegin, int iEnd, int grainSize, const btIParallelForBod btAssert( !"called btParallelFor in non-threadsafe build. enable BT_THREADSAFE" ); body.forLoop( iBegin, iEnd ); -#endif #else // #if BT_THREADSAFE +#endif// #if BT_THREADSAFE } diff --git a/src/LinearMath/btThreads.h b/src/LinearMath/btThreads.h index f8fea8b37..781e9b1f5 100644 --- a/src/LinearMath/btThreads.h +++ b/src/LinearMath/btThreads.h @@ -151,4 +151,4 @@ btITaskScheduler* btGetPPLTaskScheduler(); void btParallelFor( int iBegin, int iEnd, int grainSize, const btIParallelForBody& body ); -#endif //BT_THREADS_H +#endif