VC++ warning fixes for python builtin
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12602 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
6c25cdde13
commit
87506db48f
2 changed files with 0 additions and 3 deletions
|
|
@ -288,8 +288,6 @@ SwigPyStaticVar_get(PyGetSetDescrObject *descr, PyObject *obj, PyObject *type) {
|
||||||
|
|
||||||
SWIGINTERN int
|
SWIGINTERN int
|
||||||
SwigPyStaticVar_set(PyGetSetDescrObject *descr, PyObject *obj, PyObject *value) {
|
SwigPyStaticVar_set(PyGetSetDescrObject *descr, PyObject *obj, PyObject *value) {
|
||||||
int res;
|
|
||||||
|
|
||||||
if (descr->d_getset->set != NULL)
|
if (descr->d_getset->set != NULL)
|
||||||
return descr->d_getset->set(obj, value, descr->d_getset->closure);
|
return descr->d_getset->set(obj, value, descr->d_getset->closure);
|
||||||
#if PY_VERSION_HEX >= 0x03000000
|
#if PY_VERSION_HEX >= 0x03000000
|
||||||
|
|
|
||||||
|
|
@ -521,7 +521,6 @@ SWIGRUNTIMEINLINE int
|
||||||
SwigPyObject_Check(PyObject *op) {
|
SwigPyObject_Check(PyObject *op) {
|
||||||
#ifdef SWIGPYTHON_BUILTIN
|
#ifdef SWIGPYTHON_BUILTIN
|
||||||
PyTypeObject *target_tp = SwigPyObject_type();
|
PyTypeObject *target_tp = SwigPyObject_type();
|
||||||
PyTypeObject *obj_tp;
|
|
||||||
if (PyType_IsSubtype(op->ob_type, target_tp))
|
if (PyType_IsSubtype(op->ob_type, target_tp))
|
||||||
return 1;
|
return 1;
|
||||||
return (strcmp(op->ob_type->tp_name, "SwigPyObject") == 0);
|
return (strcmp(op->ob_type->tp_name, "SwigPyObject") == 0);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue