[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 04:34:42 PDT 2010
https://bugzilla.gnome.org/show_bug.cgi?id=615698
GStreamer | gstreamer (core) | git
--- Comment #9 from Benjamin Otte (Company) <otte at gnome.org> 2010-04-15 11:34:39 UTC ---
You can avoid the warning by doing an intermediate cast to gpointer, like so:
(guint32 *) (gpointer) buffer->data - I've been doing that in Swfdec. And that
should work fine for g_array_free() etc.
Those casts happen very often in plugins though (think 16bit audio), so I
wouldn't even care to use the warning there. Not until we have a better
solution for GST_BUFFER_DATA().
--
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