Add a necessary cast back. Pointed out by Kazuki Iwamoto.

* glib/gthread.c (g_once_init_leave): Add a necessary cast back.
        Pointed out by Kazuki Iwamoto.


svn path=/trunk/; revision=7895
This commit is contained in:
Matthias Clasen 2009-02-23 04:07:58 +00:00
parent c41dbb919c
commit 45fdc135b2
2 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,10 @@
2009-02-22 Matthias Clasen <mclasen@redhat.com>
Bug 572672 glib/gthread.c: argument is different type
* glib/gthread.c (g_once_init_leave): Add a necessary cast back.
Pointed out by Kazuki Iwamoto.
2009-02-17 Matthias Clasen <mclasen@redhat.com>
* configure.in: Bump version

View File

@ -228,7 +228,7 @@ g_once_init_leave (volatile gsize *value_location,
g_return_if_fail (initialization_value != 0);
g_return_if_fail (g_once_init_list != NULL);
g_atomic_pointer_set (value_location, (void*) initialization_value);
g_atomic_pointer_set ((void**)value_location, (void*) initialization_value);
g_mutex_lock (g_once_mutex);
g_once_init_list = g_slist_remove (g_once_init_list, (void*) value_location);
g_cond_broadcast (g_once_cond);