Commit 38ad2db6 authored by Stefan Behnel's avatar Stefan Behnel

avoid GCC warning about unused function

parent f3f43b5d
...@@ -1578,7 +1578,7 @@ asyncio_done: ...@@ -1578,7 +1578,7 @@ asyncio_done:
{ {
PyObject *inspect_module; PyObject *inspect_module;
if (patch_module) { if (patch_module) {
inspect_module = PyObject_GetAttrString(patch_module, "inspect"); inspect_module = PyObject_GetAttr(patch_module, PYIDENT("inspect"));
Py_DECREF(patch_module); Py_DECREF(patch_module);
} else { } else {
inspect_module = __Pyx_Import(PYIDENT("inspect"), NULL, 0); inspect_module = __Pyx_Import(PYIDENT("inspect"), NULL, 0);
...@@ -1601,7 +1601,7 @@ ignore: ...@@ -1601,7 +1601,7 @@ ignore:
} }
#else #else
// avoid "unused" warning for __Pyx_Coroutine_patch_module() // avoid "unused" warning for __Pyx_Coroutine_patch_module()
if (0) return __Pyx_Coroutine_patch_module(module, NULL); if (0) return __Pyx_patch_inspect(__Pyx_Coroutine_patch_module(module, NULL));
#endif #endif
return module; return module;
} }
......
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