• Matthias Clasen's avatar
    Fix strict aliasing warnings and viiolations to make GLib and · c8e37b63
    Matthias Clasen authored
            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
    c8e37b63
gthread.h 16.6 KB