Fix "set but not used" warning
This commit is contained in:
parent
971b94f5fe
commit
2b4c1cdd5e
1 changed files with 1 additions and 1 deletions
|
|
@ -2641,7 +2641,7 @@ done:
|
|||
// variable named after the result of Swig_cresult_name(), so that can't
|
||||
// be a zval - make it a pointer to one instead.
|
||||
Printf(w->code, "zval swig_zval_result, swig_funcname;\n", Swig_cresult_name());
|
||||
Printf(w->code, "zval *%s = &swig_zval_result;\n", Swig_cresult_name());
|
||||
Printf(w->code, "zval * SWIGUNUSED %s = &swig_zval_result;\n", Swig_cresult_name());
|
||||
const char * funcname = GetChar(n, "sym:name");
|
||||
Printf(w->code, "ZVAL_STRINGL(&swig_funcname, \"%s\", %d);\n", funcname, strlen(funcname));
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue