Minor warning fix
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@4975 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
479d65e5ac
commit
804504a3a6
1 changed files with 2 additions and 2 deletions
|
|
@ -199,7 +199,7 @@ SWIG_UnpackData(char *c, void *ptr, int sz) {
|
||||||
SWIGRUNTIME(int)
|
SWIGRUNTIME(int)
|
||||||
SWIG_ConvertPtr(PyObject *obj, void **ptr, swig_type_info *ty, int flags) {
|
SWIG_ConvertPtr(PyObject *obj, void **ptr, swig_type_info *ty, int flags) {
|
||||||
swig_type_info *tc;
|
swig_type_info *tc;
|
||||||
char *c;
|
char *c = 0;
|
||||||
static PyObject *SWIG_this = 0;
|
static PyObject *SWIG_this = 0;
|
||||||
int newref = 0;
|
int newref = 0;
|
||||||
PyObject *pyobj = 0;
|
PyObject *pyobj = 0;
|
||||||
|
|
@ -291,7 +291,7 @@ type_error:
|
||||||
SWIGRUNTIME(int)
|
SWIGRUNTIME(int)
|
||||||
SWIG_ConvertPacked(PyObject *obj, void *ptr, int sz, swig_type_info *ty, int flags) {
|
SWIG_ConvertPacked(PyObject *obj, void *ptr, int sz, swig_type_info *ty, int flags) {
|
||||||
swig_type_info *tc;
|
swig_type_info *tc;
|
||||||
char *c;
|
char *c = 0;
|
||||||
|
|
||||||
if ((!obj) || (!PyString_Check(obj))) goto type_error;
|
if ((!obj) || (!PyString_Check(obj))) goto type_error;
|
||||||
c = PyString_AsString(obj);
|
c = PyString_AsString(obj);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue