Commit df19f619 authored by Stefan Behnel's avatar Stefan Behnel

mark dead code explicitly to avoid clang warnings

parent a7d948f0
...@@ -274,7 +274,7 @@ static CYTHON_INLINE PyObject *__Pyx_Coroutine_GetAsyncIter(PyObject *obj) { ...@@ -274,7 +274,7 @@ static CYTHON_INLINE PyObject *__Pyx_Coroutine_GetAsyncIter(PyObject *obj) {
} }
#else #else
// avoid C warning about 'unused function' // avoid C warning about 'unused function'
if (0) (void) __Pyx_PyObject_CallMethod0(obj, PYIDENT("__aiter__")); if ((0)) (void) __Pyx_PyObject_CallMethod0(obj, PYIDENT("__aiter__"));
#endif #endif
PyErr_Format(PyExc_TypeError, "'async for' requires an object with __aiter__ method, got %.100s", PyErr_Format(PyExc_TypeError, "'async for' requires an object with __aiter__ method, got %.100s",
...@@ -1641,7 +1641,7 @@ static int __Pyx_patch_abc(void) { ...@@ -1641,7 +1641,7 @@ static int __Pyx_patch_abc(void) {
} }
#else #else
// avoid "unused" warning for __Pyx_Coroutine_patch_module() // avoid "unused" warning for __Pyx_Coroutine_patch_module()
if (0) __Pyx_Coroutine_patch_module(NULL, NULL); if ((0)) __Pyx_Coroutine_patch_module(NULL, NULL);
#endif #endif
return 0; return 0;
} }
...@@ -1733,7 +1733,7 @@ asyncio_done: ...@@ -1733,7 +1733,7 @@ asyncio_done:
} }
#else #else
// avoid "unused" warning for __Pyx_patch_inspect() // avoid "unused" warning for __Pyx_patch_inspect()
if (0) return __Pyx_patch_inspect(module); if ((0)) return __Pyx_patch_inspect(module);
#endif #endif
} }
return module; return module;
...@@ -1745,7 +1745,7 @@ ignore: ...@@ -1745,7 +1745,7 @@ ignore:
} }
#else #else
// avoid "unused" warning for __Pyx_Coroutine_patch_module() // avoid "unused" warning for __Pyx_Coroutine_patch_module()
if (0) return __Pyx_patch_inspect(__Pyx_Coroutine_patch_module(module, NULL)); if ((0)) return __Pyx_patch_inspect(__Pyx_Coroutine_patch_module(module, NULL));
#endif #endif
return module; return module;
} }
...@@ -1780,7 +1780,7 @@ old_types.add(_cython_generator_type) ...@@ -1780,7 +1780,7 @@ old_types.add(_cython_generator_type)
} }
#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_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