[Bug 599546] [0.10/1.0] Faster read/write macros
GStreamer (bugzilla.gnome.org)
bugzilla at gnome.org
Fri Jun 8 00:54:49 PDT 2012
https://bugzilla.gnome.org/show_bug.cgi?id=599546
GStreamer | gstreamer (core) | git
Edward Hervey <bilboed> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |NEEDINFO
--- Comment #27 from Edward Hervey <bilboed at gmail.com> 2012-06-08 07:54:43 UTC ---
The remaining problem is the following (with the unit test I pushed yesterday,
which is representative of how GST_READ_* is being used):
gst/gstutils.c: In function ‘test_read_macros’:
gst/gstutils.c:1100:3: warning: dereferencing type-punned pointer will break
strict-aliasing rules [-Wstrict-aliasing]
gst/gstutils.c:1100:3: warning: dereferencing type-punned pointer will break
strict-aliasing rules [-Wstrict-aliasing]
gst/gstutils.c:1108:3: warning: dereferencing type-punned pointer will break
strict-aliasing rules [-Wstrict-aliasing]
gst/gstutils.c:1117:3: warning: dereferencing type-punned pointer will break
strict-aliasing rules [-Wstrict-aliasing]
gst/gstutils.c:1117:3: warning: dereferencing type-punned pointer will break
strict-aliasing rules [-Wstrict-aliasing]
gst/gstutils.c:1120:3: warning: dereferencing type-punned pointer will break
strict-aliasing rules [-Wstrict-aliasing]
gst/gstutils.c:1178:3: warning: dereferencing type-punned pointer will break
strict-aliasing rules [-Wstrict-aliasing]
gst/gstutils.c:1184:3: warning: dereferencing type-punned pointer will break
strict-aliasing rules [-Wstrict-aliasing]
gst/gstutils.c:1204:3: warning: dereferencing type-punned pointer will break
strict-aliasing rules [-Wstrict-aliasing]
gst/gstutils.c:1206:3: warning: dereferencing type-punned pointer will break
strict-aliasing rules [-Wstrict-aliasing]
gst/gstutils.c:1209:3: warning: dereferencing type-punned pointer will break
strict-aliasing rules [-Wstrict-aliasing]
gst/gstutils.c:1211:3: warning: dereferencing type-punned pointer will break
strict-aliasing rules [-Wstrict-aliasing]
It never fails with a guint8* (or gpointer)... but with a guint<whatever>[] ...
it'll complain.
The check passes fine fwiw, the question is just : what do we do ?
* We don't switch to using those macros (grmbl)
* We fix the few plugins that use GST_READ on arrays to being pointers instead
there are only a few culprits (one in good, two in bad)
--
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