Skip to content
Snippets Groups Projects
Commit efa6a59a authored by Stefan Wunsch's avatar Stefan Wunsch
Browse files

[PyROOT exp] Fix warnings (function ptr conversion)

The warning is introduced starting with gcc8 (cast-function-type).
parent 0be9515b
No related branches found
No related tags found
No related merge requests found
......@@ -690,7 +690,7 @@ PyObject* ProxyCallableImpl_call(PyObject * /*self*/, PyObject *args)
// Method definition for class used as decorator to create C++ wrapper
static PyMethodDef CallableImplMethods[] =
{
{"__init__", (PyCFunction)GenericCallableImpl_init, METH_VARARGS|METH_KEYWORDS, "Parse decorator arguments"},
{"__init__", (PyCFunction)(void(*)(void))(GenericCallableImpl_init), METH_VARARGS|METH_KEYWORDS, "Parse decorator arguments"},
{"__call__", ProxyCallableImpl_call, METH_VARARGS, "Create C++ wrapper function"},
{NULL, NULL, 0, NULL}
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment