[Bug 651575] New: dereferencing type-punned pointer will break strict-aliasing rules

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Tue May 31 13:47:03 PDT 2011


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

           Summary: dereferencing type-punned pointer will break
                    strict-aliasing rules
    Classification: Platform
           Product: GStreamer
           Version: git
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: Normal
         Component: gstreamer (core)
        AssignedTo: gstreamer-bugs at lists.freedesktop.org
        ReportedBy: olivier at lethanh.be
         QAContact: gstreamer-bugs at lists.freedesktop.org
     GNOME version: ---


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

-- 
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