fixed compiler warning about loosing volatile qualifier, bug #457641.
authorTim Janik <timj@imendio.com>
Wed, 29 Aug 2007 10:09:30 +0000 (10:09 +0000)
committerTim Janik <timj@src.gnome.org>
Wed, 29 Aug 2007 10:09:30 +0000 (10:09 +0000)
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

ChangeLog
glib/gthread.h

index a86b92262181de79888e58304c424845d933c3f9..6472f8bc07c399078ea4560794de17b00d381cb1 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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>
 
        * glib/gslice.[ch]: make g_slice_copy() take a gconstpointer
index ea801fb76e22f547d8269394b0872a9301cb2b1d..ffc95c1b9e1eb5f126204c4476b4cdb8e88951c1 100644 (file)
@@ -332,7 +332,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**) value_location) != 0)
+  if G_LIKELY (g_atomic_pointer_get ((void*volatile*) value_location) != 0)
     return FALSE;
   else
     return g_once_init_enter_impl (value_location);