gkeyfile: Fix -Wincompatible-pointer-types warning

Introduced in commit 1574321e51.

This fix introduces no functional changes (just a cast).

Signed-off-by: Philip Withnall <withnall@endlessm.com>
Reviewed-by: nobody
This commit is contained in:
Philip Withnall 2018-02-08 12:28:40 +00:00
parent a4fc4c1e6e
commit e9dd5e1819

View File

@ -2300,7 +2300,10 @@ g_key_file_get_locale_for_key (GKeyFile *key_file,
g_return_val_if_fail (key != NULL, NULL); g_return_val_if_fail (key != NULL, NULL);
if (locale != 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 else
languages = g_get_language_names (); languages = g_get_language_names ();