(GUILE::create_function): Silence compiler warnings: Delete

unused local vars `need_len' and `need_tempc'.  Also, only
generate `_len' and `_tempc' when not `with_smobs'.  (Thanks to
Matthias Koeppe.)


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@428 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Thien-Thi Nguyen 2000-05-05 17:35:30 +00:00
commit 19cd5a3aec

View file

@ -433,8 +433,6 @@ GUILE::create_function (char *name, char *iname, DataType *d, ParmList *l)
char *tm;
WrapperFunction f;
String cleanup;
int need_len = 0;
int need_tempc = 0;
String outarg;
int have_build = 0;
@ -478,8 +476,10 @@ GUILE::create_function (char *name, char *iname, DataType *d, ParmList *l)
int numargs = 0;
int numopt = 0;
f.add_local ("int", "_len");
f.add_local ("char *", "_tempc");
if (!with_smobs) {
f.add_local ("int", "_len");
f.add_local ("char *", "_tempc");
}
f.add_local ("SCM", "gswig_result");
// Now write code to extract the parameters (this is super ugly)