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:
authorBrecht Van Lommel <brechtvanlommel@pandora.be>2009-08-15 20:36:25 +0400
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2009-08-15 20:36:25 +0400
commit314b14301fd565b93bbb75697c29b109eacf813d (patch)
treef3e759c2040a58928975ca379f4eada8f171a915 /source/blender/python/intern
parentde330b0d5c341a86ad3413c420edd2702288d1e0 (diff)
2.5: warning fixes
Directories intern/ and source/blender/ now compile warning free again here with scons/gcc.
Diffstat (limited to 'source/blender/python/intern')
-rw-r--r--source/blender/python/intern/bpy_rna.c2
-rw-r--r--source/blender/python/intern/bpy_ui.c2
-rw-r--r--source/blender/python/intern/bpy_util.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/python/intern/bpy_rna.c b/source/blender/python/intern/bpy_rna.c
index f2c8cf05942..ac6934a6d55 100644
--- a/source/blender/python/intern/bpy_rna.c
+++ b/source/blender/python/intern/bpy_rna.c
@@ -2612,7 +2612,7 @@ PyObject *BPY_rna_props( void )
static StructRNA *pyrna_struct_as_srna(PyObject *self)
{
- PyObject *py_srna= (BPy_StructRNA *)PyObject_GetAttrString(self, "__rna__");
+ PyObject *py_srna= (PyObject*)PyObject_GetAttrString(self, "__rna__");
if(py_srna==NULL) {
PyErr_SetString(PyExc_SystemError, "internal error, self had no __rna__ attribute, should never happen.");
diff --git a/source/blender/python/intern/bpy_ui.c b/source/blender/python/intern/bpy_ui.c
index af3588f458c..f03a83bee9c 100644
--- a/source/blender/python/intern/bpy_ui.c
+++ b/source/blender/python/intern/bpy_ui.c
@@ -57,7 +57,7 @@ static struct PyModuleDef ui_module = {
PyObject *BPY_ui_module( void )
{
- PyObject *submodule, *mod;
+ PyObject *submodule;
submodule= PyModule_Create(&ui_module);
/* INCREF since its its assumed that all these functions return the
diff --git a/source/blender/python/intern/bpy_util.c b/source/blender/python/intern/bpy_util.c
index 1e73e357526..be343843acc 100644
--- a/source/blender/python/intern/bpy_util.c
+++ b/source/blender/python/intern/bpy_util.c
@@ -168,7 +168,7 @@ void PyObSpit(char *name, PyObject *var) {
}
else {
PyObject_Print(var, stderr, 0);
- fprintf(stderr, " ref:%d ", var->ob_refcnt);
+ fprintf(stderr, " ref:%d ", (int)var->ob_refcnt);
fprintf(stderr, " ptr:%p", (void *)var);
fprintf(stderr, " type:");