After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 651575 - dereferencing type-punned pointer will break strict-aliasing rules
dereferencing type-punned pointer will break strict-aliasing rules
Status: RESOLVED INVALID
Product: GStreamer
Classification: Platform
Component: gstreamer (core)
git master
Other Linux
: Normal normal
: git master
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2011-05-31 20:47 UTC by Olivier Le Thanh Duong
Modified: 2011-06-01 08:05 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Olivier Le Thanh Duong 2011-05-31 20:47:02 UTC
When compiling from Jhbuild (gnome3.2 moduleset), after encountering and fixing #651514, I get the following errors : (if I use the patch in comment 1)
gstelementfactory.c: In function ‘gst_element_factory_create’:
gstelementfactory.c:397:8: error: dereferencing type-punned pointer will break strict-aliasing rules
gstelementfactory.c:397:8: error: dereferencing type-punned pointer will break strict-aliasing rules

And if I put () around the macro I get the same erros in gstatomicqueue.c:
gstatomicqueue.c: In function ‘add_to_free_list’:
gstatomicqueue.c:115:13: error: dereferencing type-punned pointer will break strict-aliasing rules
gstatomicqueue.c:115:13: error: dereferencing type-punned pointer will break strict-aliasing rules
gstatomicqueue.c: In function ‘clear_free_list’:
gstatomicqueue.c:129:13: error: dereferencing type-punned pointer will break strict-aliasing rules
gstatomicqueue.c:129:13: error: dereferencing type-punned pointer will break strict-aliasing rules
gstatomicqueue.c: In function ‘gst_atomic_queue_peek’:
gstatomicqueue.c:250:10: error: dereferencing type-punned pointer will break strict-aliasing rules
gstatomicqueue.c:250:10: error: dereferencing type-punned pointer will break strict-aliasing rules
gstatomicqueue.c: In function ‘gst_atomic_queue_pop’:
gstatomicqueue.c:307:12: error: dereferencing type-punned pointer will break strict-aliasing rules
gstatomicqueue.c:307:12: error: dereferencing type-punned pointer will break strict-aliasing rules
gstatomicqueue.c: In function ‘gst_atomic_queue_push’:
gstatomicqueue.c:365:12: error: dereferencing type-punned pointer will break strict-aliasing rules
gstatomicqueue.c:365:12: error: dereferencing type-punned pointer will break strict-aliasing rules
make[4]: *** [libgstreamer_0.10_la-gstatomicqueue.lo] Erreur 1
Comment 1 David Schleef 2011-05-31 22:11:38 UTC
Why did you file a duplicate bug referencing the one you're duplicating?
Comment 2 Olivier Le Thanh Duong 2011-06-01 08:05:05 UTC
Because I saw a different error message and didn't understood the technical implications of the other bug so I assumed it was a different issue. Sorry about that