From 87506db48fabe2dc297962e8dc3f541900938498 Mon Sep 17 00:00:00 2001 From: William S Fulton Date: Sun, 3 Apr 2011 18:40:44 +0000 Subject: [PATCH] VC++ warning fixes for python builtin git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12602 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- Lib/python/builtin.swg | 2 -- Lib/python/pyrun.swg | 1 - 2 files changed, 3 deletions(-) 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);