silent GCC warnings with Py<2.5
authorLisandro Dalcin <dalcinl@gmail.com>
Mon, 16 Aug 2010 18:47:34 +0000 (15:47 -0300)
committerLisandro Dalcin <dalcinl@gmail.com>
Mon, 16 Aug 2010 18:47:34 +0000 (15:47 -0300)
Cython/Compiler/ExprNodes.py
Cython/Compiler/ModuleNode.py

index 87f04ee4828260daa81846ea817214c02db244d2..c635d668eb4e640fd728b3db619da35889bacb03 100755 (executable)
@@ -7518,7 +7518,7 @@ static PyObject *%(binding_cfunc)s_descr_get(PyObject *func, PyObject *obj, PyOb
 
 int %(binding_cfunc)s_init(void) {
     %(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_descr_get = %(binding_cfunc)s_descr_get;
     if (PyType_Ready(&%(binding_cfunc)s_type) < 0) {
index 204dd8e30bdf998fe144b3112fa9fd1adda30fe8..f143a62e97948bfaabdd4b64c7a7e45b37e91e80 100644 (file)
@@ -2048,7 +2048,7 @@ class ModuleNode(Nodes.Node, Nodes.BlockNode):
                     if func.is_special and func.wrapperbase_cname:
                         code.putln("{");
                         code.putln(
-                            'PyObject *wrapper = PyObject_GetAttrString((PyObject *)&%s, "%s"); %s' % (
+                            'PyObject *wrapper = __Pyx_GetAttrString((PyObject *)&%s, "%s"); %s' % (
                                 typeobj_cname,
                                 func.name,
                                 code.error_goto_if_null('wrapper', entry.pos)));