From 08212db733f886143b8d5f4daec18902e70fb247 Mon Sep 17 00:00:00 2001 From: Cosimo Lupo Date: Mon, 10 Aug 2015 14:39:44 +0100 Subject: [PATCH] [brotlimodule.cc] fix C++11 warning about conversion from string literal to 'char *' --- python/brotlimodule.cc | 5 +++-- 1 file 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(kwlist), &input, &length, &mode_convertor, &mode, &quality_convertor, &quality,