Commit 0ec3c8c0 authored by Stefan Behnel's avatar Stefan Behnel

Fix "unused" C compiler warning for "__pyx_FusedFunction_mapping_methods" when...

Fix "unused" C compiler warning for "__pyx_FusedFunction_mapping_methods" when using the limited C-API.
parent 4eafb11a
...@@ -1339,12 +1339,6 @@ static PyMemberDef __pyx_FusedFunction_members[] = { ...@@ -1339,12 +1339,6 @@ static PyMemberDef __pyx_FusedFunction_members[] = {
{0, 0, 0, 0, 0}, {0, 0, 0, 0, 0},
}; };
static PyMappingMethods __pyx_FusedFunction_mapping_methods = {
0,
(binaryfunc) __pyx_FusedFunction_getitem,
0,
};
#if CYTHON_COMPILING_IN_LIMITED_API #if CYTHON_COMPILING_IN_LIMITED_API
static PyType_Slot __pyx_FusedFunctionType_slots[] = { static PyType_Slot __pyx_FusedFunctionType_slots[] = {
{Py_tp_dealloc, (void *)__pyx_FusedFunction_dealloc}, {Py_tp_dealloc, (void *)__pyx_FusedFunction_dealloc},
...@@ -1365,7 +1359,15 @@ static PyType_Spec __pyx_FusedFunctionType_spec = { ...@@ -1365,7 +1359,15 @@ static PyType_Spec __pyx_FusedFunctionType_spec = {
Py_TPFLAGS_DEFAULT | Py_TPFLAGS_HAVE_GC | Py_TPFLAGS_BASETYPE, /*tp_flags*/ Py_TPFLAGS_DEFAULT | Py_TPFLAGS_HAVE_GC | Py_TPFLAGS_BASETYPE, /*tp_flags*/
__pyx_FusedFunctionType_slots __pyx_FusedFunctionType_slots
}; };
#else
#else /* !CYTHON_COMPILING_IN_LIMITED_API */
static PyMappingMethods __pyx_FusedFunction_mapping_methods = {
0,
(binaryfunc) __pyx_FusedFunction_getitem,
0,
};
static PyTypeObject __pyx_FusedFunctionType_type = { static PyTypeObject __pyx_FusedFunctionType_type = {
PyVarObject_HEAD_INIT(0, 0) PyVarObject_HEAD_INIT(0, 0)
"fused_cython_function", /*tp_name*/ "fused_cython_function", /*tp_name*/
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment