mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-10-07 14:10:05 +02:00
Fix #316221, Michal Benes, Stanislav Brabec;
2005-12-27 Matthias Clasen <mclasen@redhat.com> Fix #316221, Michal Benes, Stanislav Brabec; * configure.in: Fix a strict aliasing problem in g_static_mutex_get_mutex(). * glib/gthread.h: ...and in g_static_mutex_get_mutex_impl_shortcut().
This commit is contained in:
committed by
Matthias Clasen
parent
97ffe020cd
commit
1e4efb6554
@@ -138,7 +138,7 @@ void g_thread_init_with_errorcheck_mutexes (GThreadFunctions* vtable);
|
||||
GMutex* g_static_mutex_get_mutex_impl (GMutex **mutex);
|
||||
|
||||
#define g_static_mutex_get_mutex_impl_shortcut(mutex) \
|
||||
(g_atomic_pointer_get ((gpointer*)mutex) ? *(mutex) : \
|
||||
(g_atomic_pointer_get (mutex) ? *(mutex) : \
|
||||
g_static_mutex_get_mutex_impl (mutex))
|
||||
|
||||
/* shorthands for conditional and unconditional function calls */
|
||||
|
Reference in New Issue
Block a user