From: Lisandro Dalcin Date: Fri, 7 Nov 2008 12:48:25 +0000 (-0300) Subject: add explicit cast to avoid GCC warnings with -Wwrite-strings X-Git-Tag: 0.11-beta~272^2 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=0efdb76f5584f78570b7de5fdf4fc49c4c6f6cfd;p=cython.git add explicit cast to avoid GCC warnings with -Wwrite-strings --- diff --git a/Cython/Compiler/Nodes.py b/Cython/Compiler/Nodes.py index f127e56d..10700cd2 100644 --- a/Cython/Compiler/Nodes.py +++ b/Cython/Compiler/Nodes.py @@ -5118,8 +5118,8 @@ impl = r""" static int __Pyx_GetVtable(PyObject *dict, void *vtabptr) { int result; PyObject *pycobj; - - pycobj = PyMapping_GetItemString(dict, "__pyx_vtable__"); + + pycobj = PyMapping_GetItemString(dict, (char *)"__pyx_vtable__"); if (!pycobj) goto bad; *(void **)vtabptr = PyCObject_AsVoidPtr(pycobj);