Avoid unused parameter self warning
This commit is contained in:
parent
747651c7e4
commit
2cc4f51f9a
1 changed files with 1 additions and 1 deletions
|
|
@ -2814,7 +2814,7 @@ public:
|
|||
Printv(f->def, linkage, wrap_return, wname, "(PyObject *self, PyObject *args, PyObject *kwargs) {", NIL);
|
||||
}
|
||||
|
||||
if (builtin) {
|
||||
if (!builtin) {
|
||||
/* Avoid warning if the self parameter is not used. */
|
||||
Append(f->code, "(void)self;\n");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue