Sun Studio warning fixes for Python builtin
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12625 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
13527a79b7
commit
781b468aa1
2 changed files with 3 additions and 2 deletions
|
|
@ -1078,7 +1078,7 @@ SWIG_Python_GetSwigThis(PyObject *pyobj)
|
|||
}
|
||||
# endif
|
||||
return NULL;
|
||||
#endif
|
||||
#else
|
||||
|
||||
obj = 0;
|
||||
|
||||
|
|
@ -1121,6 +1121,7 @@ SWIG_Python_GetSwigThis(PyObject *pyobj)
|
|||
return SWIG_Python_GetSwigThis(obj);
|
||||
}
|
||||
return (SwigPyObject *)obj;
|
||||
#endif
|
||||
}
|
||||
|
||||
/* Acquire a pointer value */
|
||||
|
|
|
|||
|
|
@ -3241,7 +3241,7 @@ public:
|
|||
// have a private/protected destructor has an implicit public destructor.
|
||||
String *tp_dealloc = Getattr(n, "feature:python:tp_dealloc");
|
||||
if (tp_dealloc) {
|
||||
Printf(f, "SWIGPY_DESTRUCTOR_CLOSURE(%s);\n", tp_dealloc);
|
||||
Printf(f, "SWIGPY_DESTRUCTOR_CLOSURE(%s)\n", tp_dealloc);
|
||||
tp_dealloc = NewStringf("%s_closure", tp_dealloc);
|
||||
} else {
|
||||
tp_dealloc = NewString("SwigPyBuiltin_BadDealloc");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue