From 2cc4f51f9a0cdd2f2ceb3d74e4e10bb59577f750 Mon Sep 17 00:00:00 2001 From: Julien Schueller Date: Thu, 26 Jan 2023 10:25:10 +0100 Subject: [PATCH] Avoid unused parameter self warning --- Source/Modules/python.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Modules/python.cxx b/Source/Modules/python.cxx index b613b2bd0..acffea719 100644 --- a/Source/Modules/python.cxx +++ b/Source/Modules/python.cxx @@ -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"); }