From bb0dec2fab91cbde443e6756c3dc29ee009caba7 Mon Sep 17 00:00:00 2001
From: Stefan Behnel <stefan_ml@behnel.de>
Date: Thu, 4 Jun 2015 15:39:15 +0200
Subject: [PATCH] avoid GCC warning about unused function

---
 Cython/Utility/Coroutine.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/Cython/Utility/Coroutine.c b/Cython/Utility/Coroutine.c
index 140b96803..ecc63d7c4 100644
--- a/Cython/Utility/Coroutine.c
+++ b/Cython/Utility/Coroutine.c
@@ -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",
-- 
2.30.9