Fix a lot of warnings and some errors

This commit is contained in:
Jérôme Leclercq
2020-09-26 11:44:09 +02:00
parent 267bd74a97
commit 65337c6a38
30 changed files with 78 additions and 65 deletions

View File

@@ -418,7 +418,7 @@ namespace Nz
}
else
{
handler->beginFunc = [](cpArbiter* arb, cpSpace* space, void*) -> cpBool
handler->beginFunc = [](cpArbiter*, cpSpace*, void*) -> cpBool
{
return cpTrue;
};
@@ -444,7 +444,7 @@ namespace Nz
}
else
{
handler->separateFunc = [](cpArbiter* arb, cpSpace* space, void*)
handler->separateFunc = [](cpArbiter*, cpSpace*, void*)
{
};
}
@@ -472,7 +472,7 @@ namespace Nz
}
else
{
handler->preSolveFunc = [](cpArbiter* arb, cpSpace* space, void* data) -> cpBool
handler->preSolveFunc = [](cpArbiter*, cpSpace*, void*) -> cpBool
{
return cpTrue;
};
@@ -498,7 +498,7 @@ namespace Nz
}
else
{
handler->postSolveFunc = [](cpArbiter* arb, cpSpace* space, void* data)
handler->postSolveFunc = [](cpArbiter*, cpSpace*, void*)
{
};
}

View File

@@ -183,7 +183,7 @@ namespace Nz
{
using CallbackType = decltype(callback);
auto RealCallback = [](cpBody* body, cpArbiter* arbiter, void* data)
auto RealCallback = [](cpBody* /*body*/, cpArbiter* arbiter, void* data)
{
CallbackType& cb = *static_cast<CallbackType*>(data);
@@ -399,7 +399,6 @@ namespace Nz
m_geom->GenerateShapes(this, &m_shapes);
cpSpace* space = m_world->GetHandle();
for (cpShape* shape : m_shapes)
cpShapeSetUserData(shape, this);
@@ -643,7 +642,6 @@ namespace Nz
{
UnregisterFromSpace();
cpSpace* space = m_world->GetHandle();
for (cpShape* shape : m_shapes)
cpShapeFree(shape);