From: Florian Forster Date: Tue, 8 Dec 2009 11:14:56 +0000 (+0100) Subject: src/pyconfig.c: Make document strings non-const. X-Git-Tag: collectd-4.9.0~32^2~1 X-Git-Url: https://git.octo.it/?a=commitdiff_plain;h=5a4d8ac293241a96d124b108a77a79e451c2afc2;p=collectd.git src/pyconfig.c: Make document strings non-const. pyconfig.c:147: warning: initialization discards qualifiers from pointer target type --- diff --git a/src/pyconfig.c b/src/pyconfig.c index 63b44f88..ba59b240 100644 --- a/src/pyconfig.c +++ b/src/pyconfig.c @@ -6,7 +6,7 @@ #include "cpython.h" -static const char Config_doc[] = "This represents a piece of collectd's config file.\n" +static char config_doc[] = "This represents a piece of collectd's config file.\n" "It is passed to scripts with config callbacks (see \"register_config\")\n" "and is of little use if created somewhere else.\n" "\n" @@ -144,7 +144,7 @@ PyTypeObject ConfigType = { 0, /* tp_setattro */ 0, /* tp_as_buffer */ Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE | Py_TPFLAGS_HAVE_GC, /*tp_flags*/ - Config_doc, /* tp_doc */ + config_doc, /* tp_doc */ Config_traverse, /* tp_traverse */ Config_clear, /* tp_clear */ 0, /* tp_richcompare */