Fix various warnings with clang build, and adjust cmake clang warnings flags

to include a few more that gcc is using too.
This commit is contained in:
Brecht Van Lommel
2013-02-26 21:58:06 +00:00
parent 1927f44686
commit 4f3ca854e1
37 changed files with 121 additions and 106 deletions

View File

@@ -348,6 +348,7 @@ float IK_SolverGetPoleAngle(IK_Solver *solver)
return qsolver->solver.GetPoleAngle();
}
#if 0
static void IK_SolverAddCenterOfMass(IK_Solver *solver, IK_Segment *root, float goal[3], float weight)
{
if (solver == NULL || root == NULL)
@@ -363,6 +364,7 @@ static void IK_SolverAddCenterOfMass(IK_Solver *solver, IK_Segment *root, float
com->SetWeight(weight);
qsolver->tasks.push_back(com);
}
#endif
int IK_Solve(IK_Solver *solver, float tolerance, int max_iterations)
{