[Bug 769167] New: ahc: fix strict aliasing warnings

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Mon Jul 25 21:08:17 UTC 2016


https://bugzilla.gnome.org/show_bug.cgi?id=769167

            Bug ID: 769167
           Summary: ahc: fix strict aliasing warnings
    Classification: Platform
           Product: GStreamer
           Version: git master
                OS: Linux
            Status: NEW
          Severity: minor
          Priority: Normal
         Component: gst-plugins-bad
          Assignee: gstreamer-bugs at lists.freedesktop.org
          Reporter: martin at surround.io
        QA Contact: gstreamer-bugs at lists.freedesktop.org
     GNOME version: ---

Created attachment 332119
  --> https://bugzilla.gnome.org/attachment.cgi?id=332119&action=edit
0001-ahc-fix-strict-aliasing-warnings.patch

gcc strict aliasing can break code that performs type-punning, unless
said type punning uses unions. See:

http://www.cocoawithlove.com/2008/04/using-pointers-to-recast-in-c-is-bad.html

for more details about the UNION_CAST macro that I used.

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