summaryrefslogtreecommitdiffstats
path: root/Modules/clinic/sha512module.c.h
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2018-11-27 09:27:36 (GMT)
committerGitHub <noreply@github.com>2018-11-27 09:27:36 (GMT)
commit4a934d490fac779d8954a8292369c4506bab23fa (patch)
treec481c9a26efba1d156bb04959a12e2aac3d2deff /Modules/clinic/sha512module.c.h
parentb619b097923155a7034c05c4018bf06af9f994d0 (diff)
downloadcpython-4a934d490fac779d8954a8292369c4506bab23fa.zip
cpython-4a934d490fac779d8954a8292369c4506bab23fa.tar.gz
cpython-4a934d490fac779d8954a8292369c4506bab23fa.tar.bz2
bpo-33012: Fix invalid function cast warnings with gcc 8 in Argument Clinic. (GH-6748)
Fix invalid function cast warnings with gcc 8 for method conventions different from METH_NOARGS, METH_O and METH_VARARGS in Argument Clinic generated code.
Diffstat (limited to 'Modules/clinic/sha512module.c.h')
-rw-r--r--Modules/clinic/sha512module.c.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/Modules/clinic/sha512module.c.h b/Modules/clinic/sha512module.c.h
index 9d3a7c9..7e08701 100644
--- a/Modules/clinic/sha512module.c.h
+++ b/Modules/clinic/sha512module.c.h
@@ -72,7 +72,7 @@ PyDoc_STRVAR(_sha512_sha512__doc__,
"Return a new SHA-512 hash object; optionally initialized with a string.");
#define _SHA512_SHA512_METHODDEF \
- {"sha512", (PyCFunction)_sha512_sha512, METH_FASTCALL|METH_KEYWORDS, _sha512_sha512__doc__},
+ {"sha512", (PyCFunction)(void(*)(void))_sha512_sha512, METH_FASTCALL|METH_KEYWORDS, _sha512_sha512__doc__},
static PyObject *
_sha512_sha512_impl(PyObject *module, PyObject *string);
@@ -102,7 +102,7 @@ PyDoc_STRVAR(_sha512_sha384__doc__,
"Return a new SHA-384 hash object; optionally initialized with a string.");
#define _SHA512_SHA384_METHODDEF \
- {"sha384", (PyCFunction)_sha512_sha384, METH_FASTCALL|METH_KEYWORDS, _sha512_sha384__doc__},
+ {"sha384", (PyCFunction)(void(*)(void))_sha512_sha384, METH_FASTCALL|METH_KEYWORDS, _sha512_sha384__doc__},
static PyObject *
_sha512_sha384_impl(PyObject *module, PyObject *string);
@@ -124,4 +124,4 @@ _sha512_sha384(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObje
exit:
return return_value;
}
-/*[clinic end generated code: output=fcc3306fb6672222 input=a9049054013a1b77]*/
+/*[clinic end generated code: output=3706fa47bea06c0b input=a9049054013a1b77]*/