[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [35814] trunk/blender: clear some c++ warnings.

Campbell Barton ideasman42 at gmail.com
Sun Mar 27 09:56:29 CEST 2011


Revision: 35814
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=35814
Author:   campbellbarton
Date:     2011-03-27 07:56:29 +0000 (Sun, 27 Mar 2011)
Log Message:
-----------
clear some c++ warnings.

Modified Paths:
--------------
    trunk/blender/intern/itasc/Scene.cpp
    trunk/blender/source/blender/ikplugin/intern/itasc_plugin.cpp
    trunk/blender/source/gameengine/Ketsji/KX_PyConstraintBinding.cpp
    trunk/blender/source/gameengine/Ketsji/KX_PythonInit.cpp

Modified: trunk/blender/intern/itasc/Scene.cpp
===================================================================
--- trunk/blender/intern/itasc/Scene.cpp	2011-03-27 06:56:37 UTC (rev 35813)
+++ trunk/blender/intern/itasc/Scene.cpp	2011-03-27 07:56:29 UTC (rev 35814)
@@ -292,7 +292,7 @@
 		return true;
 	}
 
-	double maxqdot;
+	// double maxqdot; // UNUSED
 	e_scalar nlcoef;
 	SceneLock lockCallback(this);
 	Frame external_pose;
@@ -454,7 +454,7 @@
 			// 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;

Modified: trunk/blender/source/blender/ikplugin/intern/itasc_plugin.cpp
===================================================================
--- trunk/blender/source/blender/ikplugin/intern/itasc_plugin.cpp	2011-03-27 06:56:37 UTC (rev 35813)
+++ trunk/blender/source/blender/ikplugin/intern/itasc_plugin.cpp	2011-03-27 07:56:29 UTC (rev 35814)
@@ -860,13 +860,11 @@
 {
 	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;

Modified: trunk/blender/source/gameengine/Ketsji/KX_PyConstraintBinding.cpp
===================================================================
--- trunk/blender/source/gameengine/Ketsji/KX_PyConstraintBinding.cpp	2011-03-27 06:56:37 UTC (rev 35813)
+++ trunk/blender/source/gameengine/Ketsji/KX_PyConstraintBinding.cpp	2011-03-27 07:56:29 UTC (rev 35814)
@@ -405,6 +405,7 @@
 										 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;

Modified: trunk/blender/source/gameengine/Ketsji/KX_PythonInit.cpp
===================================================================
--- trunk/blender/source/gameengine/Ketsji/KX_PythonInit.cpp	2011-03-27 06:56:37 UTC (rev 35813)
+++ trunk/blender/source/gameengine/Ketsji/KX_PythonInit.cpp	2011-03-27 07:56:29 UTC (rev 35814)
@@ -1919,10 +1919,10 @@
 
 // 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}
 };
 




More information about the Bf-blender-cvs mailing list