mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-10-17 02:42:54 +02:00
fixed compiler warning about loosing volatile qualifier, bug #457641.
Wed Aug 29 12:08:40 2007 Tim Janik <timj@imendio.com> * glib/gthread.h (g_once_init_enter): fixed compiler warning about loosing volatile qualifier, bug #457641. svn path=/trunk/; revision=5725
This commit is contained in:
@@ -1,3 +1,8 @@
|
|||||||
|
Wed Aug 29 12:08:40 2007 Tim Janik <timj@imendio.com>
|
||||||
|
|
||||||
|
* glib/gthread.h (g_once_init_enter): fixed compiler warning about
|
||||||
|
loosing volatile qualifier, bug #457641.
|
||||||
|
|
||||||
2007-08-24 Michael Natterer <mitch@imendio.com>
|
2007-08-24 Michael Natterer <mitch@imendio.com>
|
||||||
|
|
||||||
* glib/gslice.[ch]: make g_slice_copy() take a gconstpointer
|
* glib/gslice.[ch]: make g_slice_copy() take a gconstpointer
|
||||||
|
@@ -332,7 +332,7 @@ void g_once_init_leave (volatile gsize *value_location,
|
|||||||
G_INLINE_FUNC gboolean
|
G_INLINE_FUNC gboolean
|
||||||
g_once_init_enter (volatile gsize *value_location)
|
g_once_init_enter (volatile gsize *value_location)
|
||||||
{
|
{
|
||||||
if G_LIKELY (g_atomic_pointer_get ((void**) value_location) != 0)
|
if G_LIKELY (g_atomic_pointer_get ((void*volatile*) value_location) != 0)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
else
|
else
|
||||||
return g_once_init_enter_impl (value_location);
|
return g_once_init_enter_impl (value_location);
|
||||||
|
Reference in New Issue
Block a user