[gstreamer-bugs] [Bug 615698] "warning: cast increases required alignment of target type" with gcc 4.2.1 on arm

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Thu Apr 15 03:29:39 PDT 2010


https://bugzilla.gnome.org/show_bug.cgi?id=615698
  GStreamer | gstreamer (core) | git

--- Comment #8 from Tim-Philipp Müller <t.i.m at zen.co.uk> 2010-04-15 10:29:36 UTC ---
> Is there a compiler flag to force objects to have "max" alignment? It might
> make sense to add that flag to GTypeInstance.

I thought __attribute__((aligned)) did that (there also seems to be a
__BIGGEST_ALIGNMENT__ macro?). However, I'm not sure if it's wise to use that
in a library header, since it may change depending on the compiler command line
options AIUI. Maybe a specific alignment that's known to be good enough on all
supported platforms will do (synced to whatever GSlice does). But in any case,
adding it to GType and GTypeClass fixes most issues with type instance and
class cast.

However, there are still other issues, esp. with GArray's g_array_free(FALSE)
etc.

-- 
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.



More information about the Gstreamer-bugs mailing list