diff --git a/Lib/python/builtin.swg b/Lib/python/builtin.swg index ca9d8ab15..281286445 100644 --- a/Lib/python/builtin.swg +++ b/Lib/python/builtin.swg @@ -288,8 +288,6 @@ SwigPyStaticVar_get(PyGetSetDescrObject *descr, PyObject *obj, PyObject *type) { SWIGINTERN int SwigPyStaticVar_set(PyGetSetDescrObject *descr, PyObject *obj, PyObject *value) { - int res; - if (descr->d_getset->set != NULL) return descr->d_getset->set(obj, value, descr->d_getset->closure); #if PY_VERSION_HEX >= 0x03000000 diff --git a/Lib/python/pyrun.swg b/Lib/python/pyrun.swg index d0ee6df0f..2e548bad2 100644 --- a/Lib/python/pyrun.swg +++ b/Lib/python/pyrun.swg @@ -521,7 +521,6 @@ SWIGRUNTIMEINLINE int SwigPyObject_Check(PyObject *op) { #ifdef SWIGPYTHON_BUILTIN PyTypeObject *target_tp = SwigPyObject_type(); - PyTypeObject *obj_tp; if (PyType_IsSubtype(op->ob_type, target_tp)) return 1; return (strcmp(op->ob_type->tp_name, "SwigPyObject") == 0);