mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-27 07:56:14 +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);
|
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 ();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user