disable C compiler warning about unused helper function in Py2
authorStefan Behnel <stefan_ml@behnel.de>
Sun, 14 Jul 2013 12:21:16 +0000 (14:21 +0200)
committerStefan Behnel <stefan_ml@behnel.de>
Sun, 14 Jul 2013 12:21:16 +0000 (14:21 +0200)
Cython/Utility/ObjectHandling.c

index c9c7638..ae4909e 100644 (file)
@@ -936,7 +936,7 @@ static CYTHON_INLINE int __Pyx_PyObject_SetAttrStr(PyObject* obj, PyObject* attr
 //@requires: PyObjectGetAttrStr
 //@substitute: naming
 
-static PyObject* __Pyx_PyObject_CallMethodTuple(PyObject* obj, PyObject* method_name, PyObject* args) {
+static CYTHON_UNUSED PyObject* __Pyx_PyObject_CallMethodTuple(PyObject* obj, PyObject* method_name, PyObject* args) {
     PyObject *method, *result = NULL;
     if (unlikely(!args)) return NULL;
     method = __Pyx_PyObject_GetAttrStr(obj, method_name);