Commit bb0dec2f authored by Stefan Behnel's avatar Stefan Behnel

avoid GCC warning about unused function

parent 06e07a32
......@@ -187,6 +187,9 @@ static CYTHON_INLINE PyObject *__Pyx_Coroutine_GetAsyncIter(PyObject *obj) {
if (!PyErr_ExceptionMatches(PyExc_AttributeError))
return NULL;
}
#else
// avoid 'unused function' warning
if (0) (void) __Pyx_PyObject_CallMethod0(obj, PYIDENT("__aiter__"));
#endif
PyErr_Format(PyExc_TypeError, "'async for' requires an object with __aiter__ method, got %.100s",
......
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