Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2011-03-27 11:56:29 +0400
committerCampbell Barton <ideasman42@gmail.com>2011-03-27 11:56:29 +0400
commitb11f29c8ac136888bbdef6d5cc2d481a5692d6ba (patch)
tree9089684b2182a4071bbcda194e93b7eacc319524 /source/gameengine
parent587bbc4213078fab34ebb631c7eb3cdabe61bc3b (diff)
clear some c++ warnings.
Diffstat (limited to 'source/gameengine')
-rw-r--r--source/gameengine/Ketsji/KX_PyConstraintBinding.cpp1
-rw-r--r--source/gameengine/Ketsji/KX_PythonInit.cpp8
2 files changed, 5 insertions, 4 deletions
diff --git a/source/gameengine/Ketsji/KX_PyConstraintBinding.cpp b/source/gameengine/Ketsji/KX_PyConstraintBinding.cpp
index 8776bf6fe88..bf288e1f1ad 100644
--- a/source/gameengine/Ketsji/KX_PyConstraintBinding.cpp
+++ b/source/gameengine/Ketsji/KX_PyConstraintBinding.cpp
@@ -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;
diff --git a/source/gameengine/Ketsji/KX_PythonInit.cpp b/source/gameengine/Ketsji/KX_PythonInit.cpp
index 0be0fa3c7dc..4226399f192 100644
--- a/source/gameengine/Ketsji/KX_PythonInit.cpp
+++ b/source/gameengine/Ketsji/KX_PythonInit.cpp
@@ -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}
};