diff options
author | Philip Withnall <withnall@endlessm.com> | 2018-02-08 12:28:40 +0000 |
---|---|---|
committer | Philip Withnall <withnall@endlessm.com> | 2018-02-08 12:29:57 +0000 |
commit | e9dd5e18193c6e95b47c9cb9e60803171603270d (patch) | |
tree | 7b54bf1abdebe589be69d624719f48106bcbe2f4 /glib/gkeyfile.c | |
parent | a4fc4c1e6eb57b10e2b60f522d11fd2c256dee31 (diff) | |
download | glib-e9dd5e18193c6e95b47c9cb9e60803171603270d.tar.gz |
gkeyfile: Fix -Wincompatible-pointer-types warning
Introduced in commit 1574321e51dc20eb2b0fdd699966428be3cc05eb.
This fix introduces no functional changes (just a cast).
Signed-off-by: Philip Withnall <withnall@endlessm.com>
Reviewed-by: nobody
Diffstat (limited to 'glib/gkeyfile.c')
-rw-r--r-- | glib/gkeyfile.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/glib/gkeyfile.c b/glib/gkeyfile.c index 59730f7c1..ae3bbbc1d 100644 --- a/glib/gkeyfile.c +++ b/glib/gkeyfile.c @@ -2300,7 +2300,10 @@ g_key_file_get_locale_for_key (GKeyFile *key_file, g_return_val_if_fail (key != NULL, NULL); if (locale != NULL) - languages = languages_allocated = g_get_locale_variants (locale); + { + languages_allocated = g_get_locale_variants (locale); + languages = (const gchar * const *) languages_allocated; + } else languages = g_get_language_names (); |