Fix unused variable warning in Perl wrappers

This commit is contained in:
William S Fulton 2016-05-27 08:36:34 +01:00
commit 7ead141aa9
2 changed files with 3 additions and 0 deletions

View file

@ -28,6 +28,7 @@ extern "C"
XS(SWIG_init) {
dXSARGS;
int i;
(void)items;
SWIG_InitializeModule(0);

View file

@ -2130,6 +2130,8 @@ public:
String *cres = SwigType_lstr(returntype, "c_result");
Printf(w->code, "%s;\n", cres);
Delete(cres);
}
if (!ignored_method) {
String *pres = NewStringf("SV *%s", Swig_cresult_name());
Wrapper_add_local(w, Swig_cresult_name(), pres);
Delete(pres);