Gustavo J. A. M. Carneiro added the comment:
I was about to submit the very same patch :-)
I missed PyErr_NewException, but you missed the PyMapping_* methods ;)
Please look into this matter. GCC 4.2 has arrived and it has a new
warning. The code:
char* kwlist[] = { "target", "encoding", NULL };
now gives a warning like:
"warning: deprecated conversion from string constant to ‘char*’"
at least when compiling in C++ mode...
This means that people have to declare it as "const char* kwlist", which
will then trigger another warning when calling
PyArg_ParseTupleAndKeywords with such a variable, because the prototype is:
PyAPI_FUNC(int) PyArg_ParseTupleAndKeywords(PyObject *, PyObject *,
const char *, char **,
...);
The "char **" should be "const char **". ext-, any chance you could fix
that too?
----------
nosy: +gustavo
_____________________________________
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue1772673>
_____________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com