[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");
|
||||
if (f)
|
||||
{
|
||||
int result;
|
||||
char oneline[1024];
|
||||
char* argv[] = {0,&oneline[0]};
|
||||
|
||||
|
||||
@@ -367,9 +367,8 @@ void TestJointTorqueSetup::initPhysics()
|
||||
|
||||
btSerializer* s = new btDefaultSerializer;
|
||||
m_dynamicsWorld->serialize(s);
|
||||
b3ResourcePath p;
|
||||
char resourcePath[1024];
|
||||
if (p.findResourcePath("multibody.bullet",resourcePath,1024))
|
||||
if (b3ResourcePath::findResourcePath("multibody.bullet",resourcePath,1024))
|
||||
{
|
||||
FILE* f = fopen(resourcePath,"wb");
|
||||
fwrite(s->getBufferPointer(),s->getCurrentBufferSize(),1,f);
|
||||
|
||||
@@ -435,11 +435,10 @@ void Win32Window::setWindowTitle(const char* titleChar)
|
||||
wchar_t windowTitle[1024];
|
||||
swprintf(windowTitle, 1024, L"%hs", titleChar);
|
||||
|
||||
DWORD dwResult;
|
||||
|
||||
#ifdef _WIN64
|
||||
SetWindowTextW(m_data->m_hWnd, windowTitle);
|
||||
#else
|
||||
DWORD dwResult;
|
||||
SendMessageTimeoutW(m_data->m_hWnd, WM_SETTEXT, 0,
|
||||
reinterpret_cast<LPARAM>(windowTitle),
|
||||
SMTO_ABORTIFHUNG, 2000, &dwResult);
|
||||
|
||||
@@ -295,7 +295,7 @@ void RaytracerPhysicsSetup::stepSimulation(float deltaTime)
|
||||
|
||||
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);
|
||||
btVector3 rayTo = rayToCenter - 0.5f * hor + 0.5f * vertical;
|
||||
|
||||
@@ -234,9 +234,8 @@ void RollingFrictionDemo::initPhysics()
|
||||
{
|
||||
btSerializer* s = new btDefaultSerializer;
|
||||
m_dynamicsWorld->serialize(s);
|
||||
b3ResourcePath p;
|
||||
char resourcePath[1024];
|
||||
if (p.findResourcePath("slope.bullet",resourcePath,1024))
|
||||
if (b3ResourcePath::findResourcePath("slope.bullet",resourcePath,1024))
|
||||
{
|
||||
FILE* f = fopen(resourcePath,"wb");
|
||||
fwrite(s->getBufferPointer(),s->getCurrentBufferSize(),1,f);
|
||||
|
||||
@@ -568,11 +568,6 @@ void Hinge2Vehicle::renderScene()
|
||||
|
||||
m_guiHelper->render(m_dynamicsWorld);
|
||||
|
||||
|
||||
|
||||
ATTRIBUTE_ALIGNED16(btScalar) m[16];
|
||||
int i;
|
||||
|
||||
btVector3 wheelColor(1,0,0);
|
||||
|
||||
btVector3 worldBoundsMin,worldBoundsMax;
|
||||
|
||||
Reference in New Issue
Block a user