From ae85e3b7b69f9c069cdcc090832802bc772c9822 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Sat, 28 May 2011 13:59:20 -0400 Subject: [PATCH] Quell warnings from g_once_init_enter_impl --- glib/gthread.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/glib/gthread.c b/glib/gthread.c index 17fb805..61cc01f 100644 --- a/glib/gthread.c +++ b/glib/gthread.c @@ -1105,7 +1105,7 @@ g_once_init_enter_impl (volatile gsize *value_location) { gboolean need_init = FALSE; g_mutex_lock (g_once_mutex); - if (g_atomic_pointer_get (value_location) == NULL) + if (g_atomic_pointer_get ((void**) value_location) == NULL) { if (!g_slist_find (g_once_init_list, (void*) value_location)) { @@ -1139,7 +1139,7 @@ void g_once_init_leave (volatile gsize *value_location, gsize initialization_value) { - g_return_if_fail (g_atomic_pointer_get (value_location) == NULL); + g_return_if_fail (g_atomic_pointer_get ((void**)value_location) == NULL); g_return_if_fail (initialization_value != 0); g_return_if_fail (g_once_init_list != NULL); -- 2.7.4