Fix unused variable warning in Perl wrappers
This commit is contained in:
parent
1e718c2ad0
commit
7ead141aa9
2 changed files with 3 additions and 0 deletions
|
|
@ -28,6 +28,7 @@ extern "C"
|
|||
XS(SWIG_init) {
|
||||
dXSARGS;
|
||||
int i;
|
||||
(void)items;
|
||||
|
||||
SWIG_InitializeModule(0);
|
||||
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue