[Bug 755657] New: Fix -Werror build for clang

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Sat Sep 26 03:24:11 PDT 2015


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

            Bug ID: 755657
           Summary: Fix -Werror build for clang
    Classification: Platform
           Product: GStreamer
           Version: unspecified
                OS: FreeBSD
            Status: NEW
          Severity: normal
          Priority: Normal
         Component: gstreamer (core)
          Assignee: gstreamer-bugs at lists.freedesktop.org
          Reporter: lantw44 at gmail.com
        QA Contact: gstreamer-bugs at lists.freedesktop.org
     GNOME version: ---

gnome-shell switched to AX_COMPILER_FLAGS recently, so -Werror is automatically
added when building from git repository. The attached patch fixes a warning in
a gstreamer header that prevents gnome-shell from building.

/home/lantw44/gnome/devinstall/include/gstreamer-1.0/gst/gstutils.h:119:11:
error: cast from 'const guint8 *' (aka 'const unsigned char *') to 'const
guint16 *'
      (aka 'const unsigned short *') increases required alignment from 1 to 2
[-Werror,-Wcast-align]
/home/lantw44/gnome/devinstall/include/gstreamer-1.0/gst/gstutils.h:122:11:
error: cast from 'const guint8 *' (aka 'const unsigned char *') to 'const
guint32 *'
      (aka 'const unsigned int *') increases required alignment from 1 to 4
[-Werror,-Wcast-align]
/home/lantw44/gnome/devinstall/include/gstreamer-1.0/gst/gstutils.h:125:11:
error: cast from 'const guint8 *' (aka 'const unsigned char *') to 'const
guint64 *'
      (aka 'const unsigned long *') increases required alignment from 1 to 8
[-Werror,-Wcast-align]
/home/lantw44/gnome/devinstall/include/gstreamer-1.0/gst/gstutils.h:128:30:
error: cast from 'const guint8 *' (aka 'const unsigned char *') to 'const
guint16 *'
      (aka 'const unsigned short *') increases required alignment from 1 to 2
[-Werror,-Wcast-align]
/home/lantw44/gnome/devinstall/include/gstreamer-1.0/gst/gstutils.h:128:30:
error: cast from 'const guint8 *' (aka 'const unsigned char *') to 'const
guint16 *'
      (aka 'const unsigned short *') increases required alignment from 1 to 2
[-Werror,-Wcast-align]
/home/lantw44/gnome/devinstall/include/gstreamer-1.0/gst/gstutils.h:131:30:
error: cast from 'const guint8 *' (aka 'const unsigned char *') to 'const
guint32 *'
      (aka 'const unsigned int *') increases required alignment from 1 to 4
[-Werror,-Wcast-align]
/home/lantw44/gnome/devinstall/include/gstreamer-1.0/gst/gstutils.h:134:30:
error: cast from 'const guint8 *' (aka 'const unsigned char *') to 'const
guint64 *'
      (aka 'const unsigned long *') increases required alignment from 1 to 8
[-Werror,-Wcast-align]

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