Commit 19cf712c authored by Lisandro Dalcin's avatar Lisandro Dalcin

silent GCC warnings with Py<2.5

parent c5e12579
...@@ -7518,7 +7518,7 @@ static PyObject *%(binding_cfunc)s_descr_get(PyObject *func, PyObject *obj, PyOb ...@@ -7518,7 +7518,7 @@ static PyObject *%(binding_cfunc)s_descr_get(PyObject *func, PyObject *obj, PyOb
int %(binding_cfunc)s_init(void) { int %(binding_cfunc)s_init(void) {
%(binding_cfunc)s_type = PyCFunction_Type; %(binding_cfunc)s_type = PyCFunction_Type;
%(binding_cfunc)s_type.tp_name = "cython_binding_builtin_function_or_method"; %(binding_cfunc)s_type.tp_name = __Pyx_NAMESTR("cython_binding_builtin_function_or_method");
%(binding_cfunc)s_type.tp_dealloc = (destructor)%(binding_cfunc)s_dealloc; %(binding_cfunc)s_type.tp_dealloc = (destructor)%(binding_cfunc)s_dealloc;
%(binding_cfunc)s_type.tp_descr_get = %(binding_cfunc)s_descr_get; %(binding_cfunc)s_type.tp_descr_get = %(binding_cfunc)s_descr_get;
if (PyType_Ready(&%(binding_cfunc)s_type) < 0) { if (PyType_Ready(&%(binding_cfunc)s_type) < 0) {
......
...@@ -2048,7 +2048,7 @@ class ModuleNode(Nodes.Node, Nodes.BlockNode): ...@@ -2048,7 +2048,7 @@ class ModuleNode(Nodes.Node, Nodes.BlockNode):
if func.is_special and func.wrapperbase_cname: if func.is_special and func.wrapperbase_cname:
code.putln("{"); code.putln("{");
code.putln( code.putln(
'PyObject *wrapper = PyObject_GetAttrString((PyObject *)&%s, "%s"); %s' % ( 'PyObject *wrapper = __Pyx_GetAttrString((PyObject *)&%s, "%s"); %s' % (
typeobj_cname, typeobj_cname,
func.name, func.name,
code.error_goto_if_null('wrapper', entry.pos))); code.error_goto_if_null('wrapper', entry.pos)));
......
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