diff options
author | Stefan Behnel <stefan_ml@behnel.de> | 2020-04-22 08:06:38 +0200 |
---|---|---|
committer | Stefan Behnel <stefan_ml@behnel.de> | 2020-04-22 11:13:24 +0200 |
commit | 02773431f29834b32087daa6be744163cc7c2d01 (patch) | |
tree | 26968d8fbe7d73deaeac0a171807408244dbe913 | |
parent | f34cddc484c45f4db304911d94a905f0ac2d7936 (diff) | |
download | cython-02773431f29834b32087daa6be744163cc7c2d01.tar.gz |
Avoid "unused" C compiler warning.
-rw-r--r-- | Cython/Utility/ObjectHandling.c | 5 |
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; } |