Fixed some compiler warnings.

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@243 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Dave Beazley 2000-02-15 23:19:56 +00:00
commit 91ed177312

View file

@ -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;