From 5a4d8ac293241a96d124b108a77a79e451c2afc2 Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Tue, 8 Dec 2009 12:14:56 +0100 Subject: [PATCH] src/pyconfig.c: Make document strings non-const. pyconfig.c:147: warning: initialization discards qualifiers from pointer target type --- src/pyconfig.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 */ -- 2.11.0