Commit aa896981 authored by Mark Florisson's avatar Mark Florisson

Silence const char * warnings

parent f5660d1b
...@@ -6374,7 +6374,7 @@ class CythonArrayNode(ExprNode): ...@@ -6374,7 +6374,7 @@ class CythonArrayNode(ExprNode):
self.mode, self.operand.result()) self.mode, self.operand.result())
code.putln('%s = __pyx_array_new(' code.putln('%s = __pyx_array_new('
'%s, %s, PyBytes_AS_STRING(%s), ' '%s, %s, PyBytes_AS_STRING(%s), '
'"%s", (char *) %s);' % tup) '(char *) "%s", (char *) %s);' % tup)
code.putln(code.error_goto_if_null(self.result(), self.pos)) code.putln(code.error_goto_if_null(self.result(), self.pos))
code.put_gotref(self.result()) code.put_gotref(self.result())
......
...@@ -12,7 +12,6 @@ typedef struct { ...@@ -12,7 +12,6 @@ typedef struct {
} {{memviewslice_name}}; } {{memviewslice_name}};
/////////////// ObjectToMemviewSlice.proto /////////////// /////////////// ObjectToMemviewSlice.proto ///////////////
{{# __Pyx_PyObject_to_MemoryviewSlice_<count> }}
static CYTHON_INLINE {{memviewslice_name}} {{funcname}}(PyObject *); static CYTHON_INLINE {{memviewslice_name}} {{funcname}}(PyObject *);
////////// MemviewSliceInit.proto ////////// ////////// MemviewSliceInit.proto //////////
...@@ -49,8 +48,6 @@ static CYTHON_INLINE char *__pyx_memviewslice_index_full(const char *bufp, Py_ss ...@@ -49,8 +48,6 @@ static CYTHON_INLINE char *__pyx_memviewslice_index_full(const char *bufp, Py_ss
/////////////// ObjectToMemviewSlice /////////////// /////////////// ObjectToMemviewSlice ///////////////
{{#__Pyx_PyObject_to_MemoryviewSlice_<count>}}
static CYTHON_INLINE {{memviewslice_name}} {{funcname}}(PyObject *obj) { static CYTHON_INLINE {{memviewslice_name}} {{funcname}}(PyObject *obj) {
{{memviewslice_name}} result = {0}; {{memviewslice_name}} result = {0};
...@@ -346,7 +343,7 @@ static __Pyx_memviewslice {{copy_name}}(const __Pyx_memviewslice from_mvs) { ...@@ -346,7 +343,7 @@ static __Pyx_memviewslice {{copy_name}}(const __Pyx_memviewslice from_mvs) {
PyObject *temp_int = 0; PyObject *temp_int = 0;
struct __pyx_array_obj *array_obj = 0; struct __pyx_array_obj *array_obj = 0;
struct __pyx_memoryview_obj *memview_obj = 0; struct __pyx_memoryview_obj *memview_obj = 0;
char *mode = "{{mode}}"; char *mode = (char *) "{{mode}}";
__Pyx_RefNannySetupContext("{{copy_name}}"); __Pyx_RefNannySetupContext("{{copy_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