Hi,

please apply the attached patch that fixes one g++ warning, or if it
doesn't apply cleanly due to whitespace, pull it from here:

http://freehg.org/u/certik/cython-devel/

Thanks,
Ondrej



# HG changeset patch
# User Ondrej Certik <[EMAIL PROTECTED]>
# Date 1220643365 -7200
# Node ID ac7feebf9be4947f0daec201d63b2d5ce3c3b43b
# Parent  22c6ce692a3a8837df4f1202293d1447a1f9c34b
Make __Pyx_ArgTypeTest() use "const char*" to suppress warning.

diff --git a/Cython/Compiler/Nodes.py b/Cython/Compiler/Nodes.py
--- a/Cython/Compiler/Nodes.py
+++ b/Cython/Compiler/Nodes.py
@@ -4364,9 +4364,9 @@ static void __Pyx_ReRaise(void) {

 arg_type_test_utility_code = [
 """
-static int __Pyx_ArgTypeTest(PyObject *obj, PyTypeObject *type, int
none_allowed, char *name, int exact); /*proto*/
-""","""
-static int __Pyx_ArgTypeTest(PyObject *obj, PyTypeObject *type, int
none_allowed, char *name, int exact) {
+static int __Pyx_ArgTypeTest(PyObject *obj, PyTypeObject *type, int
none_allowed, const char *name, int exact); /*proto*/
+""","""
+static int __Pyx_ArgTypeTest(PyObject *obj, PyTypeObject *type, int
none_allowed, const char *name, int exact) {
     if (!type) {
         PyErr_Format(PyExc_SystemError, "Missing type object");
         return 0;
_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev

Reply via email to