From 0708b991ca1b8d990949a31f5a24896f5240aeac Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Wed, 10 Sep 2008 16:25:06 +0200 Subject: [PATCH] signature constification to remove C++ compiler warnings (by Ondrej) --- Cython/Compiler/ModuleNode.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Cython/Compiler/ModuleNode.py b/Cython/Compiler/ModuleNode.py index 6d3100eb..6429f85b 100644 --- a/Cython/Compiler/ModuleNode.py +++ b/Cython/Compiler/ModuleNode.py @@ -1958,11 +1958,11 @@ builtin_module_name_utility_code = [ import_module_utility_code = [ """ -static PyObject *__Pyx_ImportModule(char *name); /*proto*/ +static PyObject *__Pyx_ImportModule(const char *name); /*proto*/ """,""" #ifndef __PYX_HAVE_RT_ImportModule #define __PYX_HAVE_RT_ImportModule -static PyObject *__Pyx_ImportModule(char *name) { +static PyObject *__Pyx_ImportModule(const char *name) { PyObject *py_name = 0; PyObject *py_module = 0; @@ -1987,11 +1987,11 @@ bad: type_import_utility_code = [ """ -static PyTypeObject *__Pyx_ImportType(char *module_name, char *class_name, long size); /*proto*/ +static PyTypeObject *__Pyx_ImportType(const char *module_name, char *class_name, long size); /*proto*/ """,""" #ifndef __PYX_HAVE_RT_ImportType #define __PYX_HAVE_RT_ImportType -static PyTypeObject *__Pyx_ImportType(char *module_name, char *class_name, +static PyTypeObject *__Pyx_ImportType(const char *module_name, char *class_name, long size) { PyObject *py_module = 0; -- 2.26.2