[Bug 795756] New: Compilation fails on GCC 8.0.1

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Wed May 2 15:57:05 UTC 2018


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

            Bug ID: 795756
           Summary: Compilation fails on GCC 8.0.1
    Classification: Platform
           Product: GStreamer
           Version: git master
                OS: Linux
            Status: NEW
          Severity: critical
          Priority: Normal
         Component: gstreamer (core)
          Assignee: gstreamer-bugs at lists.freedesktop.org
          Reporter: ullysses.a.eoff at intel.com
        QA Contact: gstreamer-bugs at lists.freedesktop.org
     GNOME version: ---

gstreamer (master) heads/master-0-g98200ddd8dfd

With GCC 8.0.1 (default on recent Fedora 28 release), gstreamer fails to
compile:

gstregistrybinary.c: In function 'gst_registry_binary_initialize_magic':
gstregistrybinary.c:339:8: error: 'strncpy' output truncated before terminating
nul copying 4 bytes from a string of the same length
[-Werror=stringop-truncation]
   if (!strncpy (m->magic, GST_MAGIC_BINARY_REGISTRY_STR,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
           GST_MAGIC_BINARY_REGISTRY_LEN)
           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
make[4]: *** [Makefile:1617: libgstreamer_1.0_la-gstregistrybinary.lo] Error 1

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