Add a cast to silence compiler warnings. (#321978, Andrew Paprocki)
authorMatthias Clasen <mclasen@redhat.com>
Tue, 27 Dec 2005 19:21:36 +0000 (19:21 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Tue, 27 Dec 2005 19:21:36 +0000 (19:21 +0000)
2005-12-27  Matthias Clasen  <mclasen@redhat.com>

        * glib/gdatasetprivate.h: Add a cast to silence compiler
        warnings.  (#321978, Andrew Paprocki)

ChangeLog
ChangeLog.pre-2-10
ChangeLog.pre-2-12
glib/gdatasetprivate.h

index db038ee..3c15875 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,4 +1,7 @@
 2005-12-27  Matthias Clasen  <mclasen@redhat.com>
+       
+       * glib/gdatasetprivate.h: Add a cast to silence compiler
+       warnings.  (#321978, Andrew Paprocki)
 
        Partial fix for bug #32937, Bogdan Nicula.
 
index db038ee..3c15875 100644 (file)
@@ -1,4 +1,7 @@
 2005-12-27  Matthias Clasen  <mclasen@redhat.com>
+       
+       * glib/gdatasetprivate.h: Add a cast to silence compiler
+       warnings.  (#321978, Andrew Paprocki)
 
        Partial fix for bug #32937, Bogdan Nicula.
 
index db038ee..3c15875 100644 (file)
@@ -1,4 +1,7 @@
 2005-12-27  Matthias Clasen  <mclasen@redhat.com>
+       
+       * glib/gdatasetprivate.h: Add a cast to silence compiler
+       warnings.  (#321978, Andrew Paprocki)
 
        Partial fix for bug #32937, Bogdan Nicula.
 
index 1a0d947..5da9026 100644 (file)
 G_BEGIN_DECLS
 
 /* GET_FLAGS is implemented via atomic pointer access, to allow memory
- * barriers take effect without acquirering the global dataset mutex.
+ * barriers to take effect without acquiring the global dataset mutex.
  */
 #define G_DATALIST_GET_FLAGS(datalist)                         \
-  ((gsize) g_atomic_pointer_get (datalist) & G_DATALIST_FLAGS_MASK)
+  ((gsize) g_atomic_pointer_get ((gpointer *)(datalist)) & G_DATALIST_FLAGS_MASK)
 
 
 G_END_DECLS