fix some complier warnings and add -Wundef to CMake's default GCC warnings.
[blender.git] / source / gameengine / Converter / BL_SkinDeformer.cpp
index 3a379e8b0edf1b715750f0208cde0f5ae4bca24b..98afcf877a18650fbea887e7f161873c313d0888 100644 (file)
@@ -243,7 +243,6 @@ void BL_SkinDeformer::BGEDeformVerts()
        for (int i=0; i<m_bmesh->totvert; ++i)
        {
                float contrib = 0.f, weight, max_weight=0.f;
-               Bone *bone;
                bPoseChannel *pchan=NULL;
                MDeformVert *dvert;
                Eigen::Map<Eigen::Vector3f> norm(m_transnors[i]);
@@ -266,7 +265,6 @@ void BL_SkinDeformer::BGEDeformVerts()
                        if (index < numGroups && (pchan=m_dfnrToPC[index]))
                        {
                                weight = dvert->dw[j].weight;
-                               bone = pchan->bone;
 
                                if (weight)
                                {