summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Behnel <stefan_ml@behnel.de>2019-01-12 15:27:06 +0100
committerStefan Behnel <stefan_ml@behnel.de>2019-01-12 15:27:06 +0100
commit3f35bed0946e0df8beb7c2029ae7ea1e3c0c8c37 (patch)
treea989f081625d6a6f0cea04cb2c9c38d1223afcb2
parenta32504ba396eb76e654fcb46fa774f2274480571 (diff)
downloadcython-3f35bed0946e0df8beb7c2029ae7ea1e3c0c8c37.tar.gz
Silence a C compiler "unused" warning.
-rw-r--r--Cython/Utility/ObjectHandling.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/Cython/Utility/ObjectHandling.c b/Cython/Utility/ObjectHandling.c
index e890c1d36..1cac59050 100644
--- a/Cython/Utility/ObjectHandling.c
+++ b/Cython/Utility/ObjectHandling.c
@@ -931,6 +931,8 @@ static PyObject *__Pyx_CreateClass(PyObject *bases, PyObject *dict, PyObject *na
#if PY_VERSION_HEX >= 0x03030000
if (PyDict_SetItem(dict, PYIDENT("__qualname__"), qualname) < 0)
return NULL;
+#else
+ CYTHON_MAYBE_UNUSED_VAR(qualname);
#endif
/* Python2 __metaclass__ */
@@ -993,6 +995,8 @@ static PyObject *__Pyx_Py3MetaclassPrepare(PyObject *metaclass, PyObject *bases,
if (unlikely(PyObject_SetItem(ns, PYIDENT("__module__"), modname) < 0)) goto bad;
#if PY_VERSION_HEX >= 0x03030000
if (unlikely(PyObject_SetItem(ns, PYIDENT("__qualname__"), qualname) < 0)) goto bad;
+#else
+ CYTHON_MAYBE_UNUSED_VAR(qualname);
#endif
if (unlikely(doc && PyObject_SetItem(ns, PYIDENT("__doc__"), doc) < 0)) goto bad;
return ns;