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
This commit is contained in:
Matthias Clasen
2009-02-17 16:14:39 +00:00
parent 3277f24dfc
commit c8e37b63e7
9 changed files with 115 additions and 84 deletions

View File

@@ -1,3 +1,16 @@
2009-02-17 Matthias Clasen <mclasen@redhat.com>
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.
2009-02-16 Matthias Clasen <mclasen@redhat.com>
* configure.in: Bump version