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:
parent
1ee134c656
commit
91ed177312
1 changed files with 4 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue