diff options
author | Julien Schueller <schueller@phimeca.com> | 2023-01-26 10:25:10 +0100 |
---|---|---|
committer | Olly Betts <ojwbetts@gmail.com> | 2023-01-27 11:17:30 +1300 |
commit | 2cc4f51f9a0cdd2f2ceb3d74e4e10bb59577f750 (patch) | |
tree | 01ccb66bb41623e8ad609cc71ad4adbee65f8c6c /Source | |
parent | 747651c7e4d40382e749eabfc211bade760e538d (diff) | |
download | swig-2cc4f51f9a0cdd2f2ceb3d74e4e10bb59577f750.tar.gz |
Avoid unused parameter self warning
Diffstat (limited to 'Source')
-rw-r--r-- | Source/Modules/python.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
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"); } |