Commit 434882af authored by Stefan Behnel's avatar Stefan Behnel

Avoid C compiler warning in Py<3.7 when the "__Pyx_PyObject_CallMethod0" helper function is unused.

parent 05345843
......@@ -108,6 +108,9 @@ static int __Pyx_PyType_Ready(PyTypeObject *t) {
// Other than this check, the Py_TPFLAGS_HEAPTYPE flag is unused
// in PyType_Ready().
t->tp_flags |= Py_TPFLAGS_HEAPTYPE;
#else
// avoid C warning about unused helper function
(void)__Pyx_PyObject_CallMethod0;
#endif
r = PyType_Ready(t);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment