gobject declare macros cause alignment warnings on armhf/armhf/mipsel
@chergert
Submitted by Christian Hergert Link to original bug (#776028)
Description
This is also likely related to bug #712370
If you use the G_DECLARE_FINAL_TYPE() macro, you can have a situation where the header cast causes an alignment warning if after the GObject we have something that is 8 bytes (like a gint64 or gdouble).
This is breaking sysprof builds on armhf/armhf/mipsel on Debian.
See also sysprof bug #775909 for some build logs.
Like bug 712370, we probably need to just add an extra (gpointer)/(void*) cast in the type cast macros to silence the warning and should be safe (since we are guaranteed to get a 2-pointer aligned allocation from GSlice anyway).