diff options
author | Cosimo Lupo <cosimo.lupo@daltonmaag.com> | 2015-08-10 14:39:44 +0100 |
---|---|---|
committer | Cosimo Lupo <cosimo.lupo@daltonmaag.com> | 2015-08-10 14:39:44 +0100 |
commit | 08212db733f886143b8d5f4daec18902e70fb247 (patch) | |
tree | 52306517170c9ab006e8b8c59255d1e4c3986f2c /python/brotlimodule.cc | |
parent | d3dfc68922ca7652ff0274eb9e31af3745b93f7e (diff) | |
download | brotli-08212db733f886143b8d5f4daec18902e70fb247.zip brotli-08212db733f886143b8d5f4daec18902e70fb247.tar.gz brotli-08212db733f886143b8d5f4daec18902e70fb247.tar.bz2 |
[brotlimodule.cc] fix C++11 warning about conversion from string literal to 'char *'
Diffstat (limited to 'python/brotlimodule.cc')
-rw-r--r-- | python/brotlimodule.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/python/brotlimodule.cc b/python/brotlimodule.cc index 9770755..c1d669a 100644 --- a/python/brotlimodule.cc +++ b/python/brotlimodule.cc @@ -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, |