2.5: warning fixes
Directories intern/ and source/blender/ now compile warning free again here with scons/gcc.
This commit is contained in:
@@ -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.");
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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:");
|
||||
|
||||
Reference in New Issue
Block a user