mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-03-31 04:43:06 +02:00
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
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…
x
Reference in New Issue
Block a user