[Working In Progress] Suppress compiler warnings.
Suppress several warnings about unused variables.
This commit is contained in:
@@ -399,7 +399,6 @@ static void loadCurrentSettings(const char* startFileName, b3CommandLineArgs& ar
|
|||||||
FILE* f = fopen(startFileName,"r");
|
FILE* f = fopen(startFileName,"r");
|
||||||
if (f)
|
if (f)
|
||||||
{
|
{
|
||||||
int result;
|
|
||||||
char oneline[1024];
|
char oneline[1024];
|
||||||
char* argv[] = {0,&oneline[0]};
|
char* argv[] = {0,&oneline[0]};
|
||||||
|
|
||||||
|
|||||||
@@ -367,9 +367,8 @@ void TestJointTorqueSetup::initPhysics()
|
|||||||
|
|
||||||
btSerializer* s = new btDefaultSerializer;
|
btSerializer* s = new btDefaultSerializer;
|
||||||
m_dynamicsWorld->serialize(s);
|
m_dynamicsWorld->serialize(s);
|
||||||
b3ResourcePath p;
|
|
||||||
char resourcePath[1024];
|
char resourcePath[1024];
|
||||||
if (p.findResourcePath("multibody.bullet",resourcePath,1024))
|
if (b3ResourcePath::findResourcePath("multibody.bullet",resourcePath,1024))
|
||||||
{
|
{
|
||||||
FILE* f = fopen(resourcePath,"wb");
|
FILE* f = fopen(resourcePath,"wb");
|
||||||
fwrite(s->getBufferPointer(),s->getCurrentBufferSize(),1,f);
|
fwrite(s->getBufferPointer(),s->getCurrentBufferSize(),1,f);
|
||||||
|
|||||||
@@ -435,11 +435,10 @@ void Win32Window::setWindowTitle(const char* titleChar)
|
|||||||
wchar_t windowTitle[1024];
|
wchar_t windowTitle[1024];
|
||||||
swprintf(windowTitle, 1024, L"%hs", titleChar);
|
swprintf(windowTitle, 1024, L"%hs", titleChar);
|
||||||
|
|
||||||
DWORD dwResult;
|
|
||||||
|
|
||||||
#ifdef _WIN64
|
#ifdef _WIN64
|
||||||
SetWindowTextW(m_data->m_hWnd, windowTitle);
|
SetWindowTextW(m_data->m_hWnd, windowTitle);
|
||||||
#else
|
#else
|
||||||
|
DWORD dwResult;
|
||||||
SendMessageTimeoutW(m_data->m_hWnd, WM_SETTEXT, 0,
|
SendMessageTimeoutW(m_data->m_hWnd, WM_SETTEXT, 0,
|
||||||
reinterpret_cast<LPARAM>(windowTitle),
|
reinterpret_cast<LPARAM>(windowTitle),
|
||||||
SMTO_ABORTIFHUNG, 2000, &dwResult);
|
SMTO_ABORTIFHUNG, 2000, &dwResult);
|
||||||
|
|||||||
@@ -295,7 +295,7 @@ void RaytracerPhysicsSetup::stepSimulation(float deltaTime)
|
|||||||
|
|
||||||
for (x=0;x<m_internalData->m_width;x++)
|
for (x=0;x<m_internalData->m_width;x++)
|
||||||
{
|
{
|
||||||
for (int y=0;y<m_internalData->m_height;y++)
|
for (y=0;y<m_internalData->m_height;y++)
|
||||||
{
|
{
|
||||||
btVector4 rgba(0,0,0,0);
|
btVector4 rgba(0,0,0,0);
|
||||||
btVector3 rayTo = rayToCenter - 0.5f * hor + 0.5f * vertical;
|
btVector3 rayTo = rayToCenter - 0.5f * hor + 0.5f * vertical;
|
||||||
|
|||||||
@@ -234,9 +234,8 @@ void RollingFrictionDemo::initPhysics()
|
|||||||
{
|
{
|
||||||
btSerializer* s = new btDefaultSerializer;
|
btSerializer* s = new btDefaultSerializer;
|
||||||
m_dynamicsWorld->serialize(s);
|
m_dynamicsWorld->serialize(s);
|
||||||
b3ResourcePath p;
|
|
||||||
char resourcePath[1024];
|
char resourcePath[1024];
|
||||||
if (p.findResourcePath("slope.bullet",resourcePath,1024))
|
if (b3ResourcePath::findResourcePath("slope.bullet",resourcePath,1024))
|
||||||
{
|
{
|
||||||
FILE* f = fopen(resourcePath,"wb");
|
FILE* f = fopen(resourcePath,"wb");
|
||||||
fwrite(s->getBufferPointer(),s->getCurrentBufferSize(),1,f);
|
fwrite(s->getBufferPointer(),s->getCurrentBufferSize(),1,f);
|
||||||
|
|||||||
@@ -568,11 +568,6 @@ void Hinge2Vehicle::renderScene()
|
|||||||
|
|
||||||
m_guiHelper->render(m_dynamicsWorld);
|
m_guiHelper->render(m_dynamicsWorld);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
ATTRIBUTE_ALIGNED16(btScalar) m[16];
|
|
||||||
int i;
|
|
||||||
|
|
||||||
btVector3 wheelColor(1,0,0);
|
btVector3 wheelColor(1,0,0);
|
||||||
|
|
||||||
btVector3 worldBoundsMin,worldBoundsMax;
|
btVector3 worldBoundsMin,worldBoundsMax;
|
||||||
|
|||||||
@@ -965,8 +965,6 @@ inline void b3DynamicBvh::rayTestInternal( const b3DbvtNode* root,
|
|||||||
B3_DBVT_CHECKTYPE
|
B3_DBVT_CHECKTYPE
|
||||||
if(root)
|
if(root)
|
||||||
{
|
{
|
||||||
b3Vector3 resultNormal;
|
|
||||||
|
|
||||||
int depth=1;
|
int depth=1;
|
||||||
int treshold=B3_DOUBLE_STACKSIZE-2;
|
int treshold=B3_DOUBLE_STACKSIZE-2;
|
||||||
b3AlignedObjectArray<const b3DbvtNode*>& stack = m_rayTestStack;
|
b3AlignedObjectArray<const b3DbvtNode*>& stack = m_rayTestStack;
|
||||||
|
|||||||
@@ -692,8 +692,6 @@ static bool findSeparatingAxis( const b3ConvexPolyhedronData& hullA, const b3Con
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
b3Vector3 edgeAstart,edgeAend,edgeBstart,edgeBend;
|
|
||||||
|
|
||||||
int curEdgeEdge = 0;
|
int curEdgeEdge = 0;
|
||||||
// Test edges
|
// Test edges
|
||||||
for(int e0=0;e0<hullA.m_numUniqueEdges;e0++)
|
for(int e0=0;e0<hullA.m_numUniqueEdges;e0++)
|
||||||
@@ -1292,7 +1290,6 @@ int clipHullHullSingle(
|
|||||||
B3_PROFILE("overlap");
|
B3_PROFILE("overlap");
|
||||||
|
|
||||||
float4 normalOnSurfaceB = (float4&)hostNormal;
|
float4 normalOnSurfaceB = (float4&)hostNormal;
|
||||||
float4 centerOut;
|
|
||||||
|
|
||||||
b3Int4 contactIdx;
|
b3Int4 contactIdx;
|
||||||
contactIdx.x = 0;
|
contactIdx.x = 0;
|
||||||
@@ -2777,8 +2774,6 @@ int computeContactConvexConvex2(
|
|||||||
hullB = convexShapes[colB.m_shapeIndex];
|
hullB = convexShapes[colB.m_shapeIndex];
|
||||||
//printf("numvertsB = %d\n",hullB.m_numVertices);
|
//printf("numvertsB = %d\n",hullB.m_numVertices);
|
||||||
|
|
||||||
|
|
||||||
float4 contactsOut[MAX_VERTS];
|
|
||||||
int contactCapacity = MAX_VERTS;
|
int contactCapacity = MAX_VERTS;
|
||||||
int numContactsOut=0;
|
int numContactsOut=0;
|
||||||
|
|
||||||
|
|||||||
@@ -619,8 +619,8 @@ void b3QuantizedBvh::walkStacklessQuantizedTreeAgainstRay(b3NodeOverlapCallback*
|
|||||||
/* Add box cast extents */
|
/* Add box cast extents */
|
||||||
bounds[0] -= aabbMax;
|
bounds[0] -= aabbMax;
|
||||||
bounds[1] -= aabbMin;
|
bounds[1] -= aabbMin;
|
||||||
b3Vector3 normal;
|
|
||||||
#if 0
|
#if 0
|
||||||
|
b3Vector3 normal;
|
||||||
bool ra2 = b3RayAabb2 (raySource, rayDirection, sign, bounds, param, 0.0, lambda_max);
|
bool ra2 = b3RayAabb2 (raySource, rayDirection, sign, bounds, param, 0.0, lambda_max);
|
||||||
bool ra = b3RayAabb (raySource, rayTarget, bounds[0], bounds[1], param, normal);
|
bool ra = b3RayAabb (raySource, rayTarget, bounds[0], bounds[1], param, normal);
|
||||||
if (ra2 != ra)
|
if (ra2 != ra)
|
||||||
|
|||||||
Reference in New Issue
Block a user