summaryrefslogtreecommitdiff
path: root/src/module.c
diff options
context:
space:
mode:
authorScott Talbert <swt@techie.net>2022-12-12 14:31:53 -0500
committerScott Talbert <swt@techie.net>2022-12-12 14:31:53 -0500
commitf13cb99dd4bf5781533dbb3bafb15d686adc491a (patch)
tree92cc40362cf0015f29717441e3ab42f1a32754ab /src/module.c
parent0e66e605e043ff499a1e5378b7ae5d8924f8c9ae (diff)
downloadpycurl-f13cb99dd4bf5781533dbb3bafb15d686adc491a.tar.gz
Add missing 2nd parameters to METH_NOARGS functions
The PyCFunction function signature is defined as: PyObject *PyCFunction(PyObject *self, PyObject *args); Thus, technically all these functions need a second (unused) parameter, although this does not seem to generate a compiler warning or cause any problems with current calling conventions. Fixes #781.
Diffstat (limited to 'src/module.c')
-rw-r--r--src/module.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/module.c b/src/module.c
index d55d3eb..4d6eb45 100644
--- a/src/module.c
+++ b/src/module.c
@@ -94,7 +94,7 @@ do_global_init(PyObject *dummy, PyObject *args)
PYCURL_INTERNAL PyObject *
-do_global_cleanup(PyObject *dummy)
+do_global_cleanup(PyObject *dummy, PyObject *Py_UNUSED(ignored))
{
UNUSED(dummy);
curl_global_cleanup();