fix more VC7.1 warnings

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7016 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Marcelo Matus 2005-02-28 23:59:51 +00:00
commit 3c93d884c7
2 changed files with 3 additions and 3 deletions

View file

@ -1160,7 +1160,7 @@ public:
outarg = NewString("");
kwargs = NewString("");
Wrapper_add_local(f,"resultobj", "PyObject *resultobj");
Wrapper_add_local(f,"resultobj", "PyObject *resultobj = NULL");
/* Write code to extract function parameters. */
emit_args(d, l, f);
@ -1626,7 +1626,7 @@ public:
/* Create a function for getting the value of a variable */
Printf(getf->def,"static PyObject *%s_get(void) {", wname);
Wrapper_add_local(getf,"pyobj", "PyObject *pyobj");
Wrapper_add_local(getf,"pyobj", "PyObject *pyobj = NULL");
if ((tm = Swig_typemap_lookup_new("varout",n,name,0))) {
Replaceall(tm,"$source",name);
Replaceall(tm,"$target","pyobj");