diff options
author | Stefan Behnel <stefan_ml@behnel.de> | 2020-05-07 14:39:33 +0200 |
---|---|---|
committer | Stefan Behnel <stefan_ml@behnel.de> | 2020-05-07 14:39:33 +0200 |
commit | 5f2a908fa7ce3257c29d9aea13e588cbc644f7dd (patch) | |
tree | ce12e086d1ddb26dc310a0387c541eb3c1cd825b | |
parent | c5b25ce1c232863de97a43e15ea374b2b9eb2589 (diff) | |
download | cython-5f2a908fa7ce3257c29d9aea13e588cbc644f7dd.tar.gz |
Try to fix MSVC warning "C4551: function call missing argument list".
Closes #3579.
-rw-r--r-- | Cython/Utility/ObjectHandling.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Cython/Utility/ObjectHandling.c b/Cython/Utility/ObjectHandling.c index e53107b64..f917383df 100644 --- a/Cython/Utility/ObjectHandling.c +++ b/Cython/Utility/ObjectHandling.c @@ -1132,7 +1132,7 @@ static PyObject *__Pyx_InitSubclassPEP487(PyObject *type_obj, PyObject *mkw) { if (unlikely(!mro)) goto done; // avoid "unused" warning - (void) __Pyx_GetBuiltinName; + (void) &__Pyx_GetBuiltinName; Py_INCREF(mro); nbases = PyTuple_GET_SIZE(mro); @@ -1183,7 +1183,7 @@ bad: #else super_type = (PyObject*) &PySuper_Type; // avoid "unused" warning - (void) __Pyx_GetBuiltinName; + (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) @@ -1257,7 +1257,7 @@ static PyObject *__Pyx_Py3ClassCreate(PyObject *metaclass, PyObject *name, PyObj } #else // avoid "unused" warning - (void) __Pyx_GetBuiltinName; + (void) &__Pyx_GetBuiltinName; #endif return result; } |