Ticket #3776: patchfile.patch

File patchfile.patch, 756 bytes (added by patrick@…, 13 years ago)

Uses appropriate casts to get rid of the problem.

  • class.cpp

     
    7676  static int property_init(PyObject *self, PyObject *args, PyObject *kwds)
    7777  {
    7878      PyObject *get = NULL, *set = NULL, *del = NULL, *doc = NULL;
    79       static char *kwlist[] = {"fget", "fset", "fdel", "doc", 0};
     79      static const char *kwlist[] = {"fget", "fset", "fdel", "doc", 0};
    8080      propertyobject *prop = (propertyobject *)self;
    8181
    8282      if (!PyArg_ParseTupleAndKeywords(args, kwds, "|OOOO:property",
    83                   kwlist, &get, &set, &del, &doc))
     83                  const_cast<char **>(kwlist), &get, &set, &del, &doc))
    8484          return -1;
    8585
    8686      if (get == Py_None)