mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-12 15:36:17 +01:00
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:
parent
c704898e26
commit
16f2c2ad0b
@ -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");
|
||||
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user