diff options
author | Christoph Reiter <reiter.christoph@gmail.com> | 2018-07-29 14:26:44 +0200 |
---|---|---|
committer | Christoph Reiter <reiter.christoph@gmail.com> | 2018-07-29 16:48:18 +0200 |
commit | 9a3567d5c0f6c451d008da003e64c5ba91e53842 (patch) | |
tree | ff99ffb2cc3835ba227b616ec27dab98bcfe0aaa /girepository | |
parent | 80923051b3e803bf5bdc118c3bac246a308497d6 (diff) | |
download | gobject-introspection-9a3567d5c0f6c451d008da003e64c5ba91e53842.tar.gz |
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.
Diffstat (limited to 'girepository')
-rw-r--r-- | girepository/girwriter.c | 2 | ||||
-rw-r--r-- | girepository/gitypelib.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/girepository/girwriter.c b/girepository/girwriter.c index 4bc7fc96..dacce86f 100644 --- a/girepository/girwriter.c +++ b/girepository/girwriter.c @@ -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"); diff --git a/girepository/gitypelib.c b/girepository/gitypelib.c index d9e924f6..8ad13604 100644 --- a/girepository/gitypelib.c +++ b/girepository/gitypelib.c @@ -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; |