Fix strict aliasing warnings and viiolations to make GLib and
authorMatthias Clasen <matthiasc@src.gnome.org>
Tue, 17 Feb 2009 16:14:39 +0000 (16:14 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Tue, 17 Feb 2009 16:14:39 +0000 (16:14 +0000)
commitc8e37b63e74fafdc1f299ec139677ad0e37676c3
treedb040d7bc96a54a76f1693a3f63997ea113b3b64
parent3277f24dfc4c36c3130a44d94e66b7ad8f9fa920
    Fix strict aliasing warnings and viiolations to make GLib and
        GLib users buildable with gcc 4.4. Patch by Jakub Jelinek.

        * glib/gatomic.[hc]: Add G_GNUC_MAY_ALIAS to pointer arguments,
        fix macro versions to only operate on objects of the same size.

        * glib/gdataset.c:
        * glib/gthread.[hc]:
        * glib/gdatasetprivate.h: Remove unnecessary casts in
        g_atomic_pointer_get calls.

svn path=/trunk/; revision=7875
ChangeLog
glib/gatomic.c
glib/gatomic.h
glib/gdataset.c
glib/gdatasetprivate.h
glib/gthread.c
glib/gthread.h
gobject/ChangeLog
gobject/gobject.c