diff options
| author | Tim Janik <timj@imendio.com> | 2007-08-29 10:09:30 (GMT) |
|---|---|---|
| committer | Tim Janik <timj@src.gnome.org> | 2007-08-29 10:09:30 (GMT) |
| commit | 37dbc09080ac280ff7a552d03869c8afa745f15a (patch) | |
| tree | 8430a9c51d08c09a83dc27fba1882281d25da0bd | |
| parent | b3e7ac276ed5a7b6dff5f8381ecf8a374a694a1e (diff) | |
| download | glib-37dbc09080ac280ff7a552d03869c8afa745f15a.zip glib-37dbc09080ac280ff7a552d03869c8afa745f15a.tar.xz | |
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
| -rw-r--r-- | ChangeLog | 5 | ||||
| -rw-r--r-- | glib/gthread.h | 2 |
2 files changed, 6 insertions, 1 deletions
@@ -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 diff --git a/glib/gthread.h b/glib/gthread.h index ea801fb..ffc95c1 100644 --- a/glib/gthread.h +++ b/glib/gthread.h @@ -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); |