mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-26 07:26:15 +01:00
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:
parent
a4fc4c1e6e
commit
e9dd5e1819
@ -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 ();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user