build: enable -Wdiscarded-qualifiers

Except for the Python module because nothing in the CPython API is marked const
and we'd have to cast everywhere.
This commit is contained in:
Christoph Reiter 2018-07-29 14:26:44 +02:00
parent c704898e26
commit 16f2c2ad0b
2 changed files with 2 additions and 2 deletions

View File

@ -237,7 +237,7 @@ write_type_info (const gchar *namespace,
else if (tag == GI_TYPE_TAG_ARRAY)
{
gint length, size;
char *name = NULL;
const char *name = NULL;
xml_start_element (file, "array");

View File

@ -272,7 +272,7 @@ strsplit_iter_init (StrSplitIter *iter,
static gboolean
strsplit_iter_next (StrSplitIter *iter,
char **out_val)
const char **out_val)
{
const char *s = iter->s;
const char *next;