Ticket #4692: 4692-fix-warning.patch

File 4692-fix-warning.patch, 830 bytes (added by Matthew Bradbury <matt-bradbury@…>, 12 years ago)

Fix warnings

  • libs/python/src/object/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)