fix unused parms in last commit for C code
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10558 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
f062f15d36
commit
f85ef02890
1 changed files with 2 additions and 2 deletions
|
|
@ -1802,11 +1802,11 @@ void SwigType_inherit_equiv(File *out) {
|
||||||
char *newmemoryused = Strstr(convcode, "newmemory"); /* see if newmemory parameter is used in order to avoid unused paramater warnings */
|
char *newmemoryused = Strstr(convcode, "newmemory"); /* see if newmemory parameter is used in order to avoid unused paramater warnings */
|
||||||
String *fn = Copy(convcode);
|
String *fn = Copy(convcode);
|
||||||
Replaceall(fn, "$from", "x");
|
Replaceall(fn, "$from", "x");
|
||||||
Printf(out, "static void *%s(void *x, int *%s) {", convname, newmemoryused ? "newmemory" : "");
|
Printf(out, "static void *%s(void *x, int *%s) {", convname, newmemoryused ? "newmemory" : "SWIGUNUSEDPARM(newmemory)");
|
||||||
Printf(out, "%s", fn);
|
Printf(out, "%s", fn);
|
||||||
} else {
|
} else {
|
||||||
String *cast = Getattr(subhash, "cast");
|
String *cast = Getattr(subhash, "cast");
|
||||||
Printf(out, "static void *%s(void *x, int *) {", convname);
|
Printf(out, "static void *%s(void *x, int *SWIGUNUSEDPARM(newmemory)) {", convname);
|
||||||
Printf(out, "\n return (void *)((%s) ", lkey);
|
Printf(out, "\n return (void *)((%s) ", lkey);
|
||||||
if (cast)
|
if (cast)
|
||||||
Printf(out, "%s", cast);
|
Printf(out, "%s", cast);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue