From 19cd5a3aec3f50963f16b41c2cacf4b6eb45a188 Mon Sep 17 00:00:00 2001 From: Thien-Thi Nguyen Date: Fri, 5 May 2000 17:35:30 +0000 Subject: [PATCH] (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 --- SWIG/Source/Modules1.1/guile.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/SWIG/Source/Modules1.1/guile.cxx b/SWIG/Source/Modules1.1/guile.cxx index 51ca7d434..223bba3d6 100644 --- a/SWIG/Source/Modules1.1/guile.cxx +++ b/SWIG/Source/Modules1.1/guile.cxx @@ -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)