summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Behnel <stefan_ml@behnel.de>2020-04-22 08:06:38 +0200
committerStefan Behnel <stefan_ml@behnel.de>2020-04-22 11:13:24 +0200
commit02773431f29834b32087daa6be744163cc7c2d01 (patch)
tree26968d8fbe7d73deaeac0a171807408244dbe913
parentf34cddc484c45f4db304911d94a905f0ac2d7936 (diff)
downloadcython-02773431f29834b32087daa6be744163cc7c2d01.tar.gz
Avoid "unused" C compiler warning.
-rw-r--r--Cython/Utility/ObjectHandling.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/Cython/Utility/ObjectHandling.c b/Cython/Utility/ObjectHandling.c
index f901fdde0..da352e07a 100644
--- a/Cython/Utility/ObjectHandling.c
+++ b/Cython/Utility/ObjectHandling.c
@@ -1187,6 +1187,8 @@ bad:
super_type = __Pyx_GetBuiltinName(PYIDENT("super"));
#else
super_type = (PyObject*) &PySuper_Type;
+ // avoid "unused" warning
+ (void) __Pyx_GetBuiltinName;
#endif
super = likely(super_type) ? __Pyx_PyObject_Call2Args(super_type, type_obj, type_obj) : NULL;
#if CYTHON_COMPILING_IN_PYPY && !defined(PySuper_Type)
@@ -1258,6 +1260,9 @@ static PyObject *__Pyx_Py3ClassCreate(PyObject *metaclass, PyObject *name, PyObj
result = __Pyx_InitSubclassPEP487(result, mkw);
}
}
+#else
+ // avoid "unused" warning
+ (void) __Pyx_GetBuiltinName;
#endif
return result;
}