diff options
Diffstat (limited to 'glib/gthread.h')
-rw-r--r-- | glib/gthread.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/glib/gthread.h b/glib/gthread.h index 8b8f7cdd1..019d0dbf1 100644 --- a/glib/gthread.h +++ b/glib/gthread.h @@ -150,7 +150,7 @@ gboolean g_thread_get_initialized (void); GMutex* g_static_mutex_get_mutex_impl (GMutex **mutex); #define g_static_mutex_get_mutex_impl_shortcut(mutex) \ - (g_atomic_pointer_get ((gpointer*)(void*)mutex) ? *(mutex) : \ + (g_atomic_pointer_get (mutex) ? *(mutex) : \ g_static_mutex_get_mutex_impl (mutex)) /* shorthands for conditional and unconditional function calls */ @@ -341,7 +341,7 @@ void g_once_init_leave (volatile gsize *value_location, G_INLINE_FUNC gboolean g_once_init_enter (volatile gsize *value_location) { - if G_LIKELY (g_atomic_pointer_get ((void*volatile*) value_location) != NULL) + if G_LIKELY ((gpointer) g_atomic_pointer_get (value_location) != NULL) return FALSE; else return g_once_init_enter_impl (value_location); |