From 91ed1773122cda210f96ddc0ce80737379dca9ae Mon Sep 17 00:00:00 2001 From: Dave Beazley Date: Tue, 15 Feb 2000 23:19:56 +0000 Subject: [PATCH] Fixed some compiler warnings. git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@243 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- Lib/python/python.swg | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Lib/python/python.swg b/Lib/python/python.swg index 2e7434f9d..b91ec874a 100644 --- a/Lib/python/python.swg +++ b/Lib/python/python.swg @@ -219,7 +219,7 @@ SWIG_TypeRegister(_swig_type_info *ti) { /* Check the typename */ SWIGSTATICRUNTIME(_swig_type_info *) SWIG_TypeCheck(char *c, _swig_type_info *ty) { - _swig_type_info *s, *temp2; + _swig_type_info *s; char *sn; if (!ty) return 0; /* Void pointer */ s = ty->next; /* First element is always just the name */ @@ -294,7 +294,10 @@ SWIG_ConvertPtr(PyObject *obj, void **ptr, _swig_type_info *ty, int flags) { *ptr = (void *) p; #endif +#ifdef SWIG_COBJECT_TYPES cobject: +#endif + if (ty) { tc = SWIG_TypeCheck(c,ty); if (!tc) goto type_error;