[brotlimodule.cc] fix C++11 warning about conversion from string literal to 'char *'

This commit is contained in:
Cosimo Lupo 2015-08-10 14:39:44 +01:00
parent d3dfc68922
commit 08212db733

View File

@ -110,9 +110,10 @@ static PyObject* brotli_compress(PyObject *self, PyObject *args, PyObject *keywd
int lgblock = -1;
int ok;
static char *kwlist[] = {"string", "mode", "quality", "lgwin", "lgblock"};
static const char *kwlist[] = {"string", "mode", "quality", "lgwin", "lgblock"};
ok = PyArg_ParseTupleAndKeywords(args, keywds, "s#|O&O&O&O&:compress", kwlist,
ok = PyArg_ParseTupleAndKeywords(args, keywds, "s#|O&O&O&O&:compress",
const_cast<char **>(kwlist),
&input, &length,
&mode_convertor, &mode,
&quality_convertor, &quality,