Avoid unused parameter self warning

This commit is contained in:
Julien Schueller 2023-01-26 10:25:10 +01:00 committed by Olly Betts
commit 2cc4f51f9a

View file

@ -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");
}