clear some c++ warnings.
authorCampbell Barton <ideasman42@gmail.com>
Sun, 27 Mar 2011 07:56:29 +0000 (07:56 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Sun, 27 Mar 2011 07:56:29 +0000 (07:56 +0000)
intern/itasc/Scene.cpp
source/blender/ikplugin/intern/itasc_plugin.cpp
source/gameengine/Ketsji/KX_PyConstraintBinding.cpp
source/gameengine/Ketsji/KX_PythonInit.cpp

index d46e4da790089b691f1c499d997dd8ebfc5ade3f..0c5e00ec56f3fb52484b036f4df02bf02ff23512 100644 (file)
@@ -292,7 +292,7 @@ bool Scene::update(double timestamp, double timestep, unsigned int numsubstep, b
                return true;
        }
 
-       double maxqdot;
+       // double maxqdot; // UNUSED
        e_scalar nlcoef;
        SceneLock lockCallback(this);
        Frame external_pose;
@@ -454,7 +454,7 @@ bool Scene::update(double timestamp, double timestep, unsigned int numsubstep, b
                        // We will pass the joint velocity to each object and they will recommend a maximum timestep
                        timesubstep = timeleft;
                        // get armature max joint velocity to estimate the maximum duration of integration
-                       maxqdot = m_qdot.cwise().abs().maxCoeff();
+                       // maxqdot = m_qdot.cwise().abs().maxCoeff(); // UNUSED
                        double maxsubstep = nlcoef*m_maxstep;
                        if (maxsubstep < m_minstep)
                                maxsubstep = m_minstep;
index dbd7c7dbf140999230d3e555136dc02a7fe48823..a456e18498b6a03bfbc94c49cde089d11b304632 100644 (file)
@@ -860,13 +860,11 @@ static int convert_channels(IK_Scene *ikscene, PoseTree *tree)
 {
        IK_Channel *ikchan;
        bPoseChannel *pchan;
-       Bone *bone;
        int a, flag, njoint;
 
        njoint = 0;
        for(a=0, ikchan = ikscene->channels; a<ikscene->numchan; ++a, ++ikchan) {
                pchan= tree->pchan[a];
-               bone= pchan->bone;
                ikchan->pchan = pchan;
                ikchan->parent = (a>0) ? tree->parent[a] : -1;
                ikchan->owner = ikscene->blArmature;
index 8776bf6fe887cbc38fcea47d6a5960c0fe3d044a..bf288e1f1add0dff456df6313573cc1ed59650de 100644 (file)
@@ -405,6 +405,7 @@ static PyObject* gPyCreateConstraint(PyObject* self,
                                                                                 PyObject* args, 
                                                                                 PyObject* kwds)
 {
+       /* FIXME - physicsid is an int being cast to a pointer, should at least use PyCapsule */
        int physicsid=0,physicsid2 = 0,constrainttype=0,extrainfo=0;
        int len = PyTuple_Size(args);
        int success = 1;
index 0be0fa3c7dcad65eb6370d508bcaa76a7b13ae02..4226399f19221349f976da7f57c36dc15a714773 100644 (file)
@@ -1919,10 +1919,10 @@ static void restorePySysObjects(void)
 
 // Copied from bpy_interface.c
 static struct _inittab bge_internal_modules[]= {
-       {"mathutils", BPyInit_mathutils},
-       {"bgl", BPyInit_bgl},
-       {"blf", BPyInit_blf},
-       {"aud", AUD_initPython},
+       {(char *)"mathutils", BPyInit_mathutils},
+       {(char *)"bgl", BPyInit_bgl},
+       {(char *)"blf", BPyInit_blf},
+       {(char *)"aud", AUD_initPython},
        {NULL, NULL}
 };