[Bug 761799] New: gst_structure_new causes compile-time warning "not enough variable arguments to fit a sentinel [-Wformat=]"

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Tue Feb 9 23:45:14 UTC 2016


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

            Bug ID: 761799
           Summary: gst_structure_new causes compile-time warning "not
                    enough variable arguments to fit a sentinel
                    [-Wformat=]"
    Classification: Platform
           Product: GStreamer
           Version: 1.6.3
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: Normal
         Component: gstreamer (core)
          Assignee: gstreamer-bugs at lists.freedesktop.org
          Reporter: vgdoqd at gmail.com
        QA Contact: gstreamer-bugs at lists.freedesktop.org
     GNOME version: ---

Hi,

The compiler I'm using is g++ 5.2.1.

    gst_structure_new("foo", NULL)
will cause compile-time warning: not enough variable arguments to fit a
sentinel [-Wformat=]


Using
    gst_structure_new("foo", NULL, NULL)
instead can dismiss the warning.

In this tutorial
http://docs.gstreamer.com/display/GstSDK/Basic+tutorial+5%3A+GUI+toolkit+integration
gst_structure_new need only one NULL to terminate its argument list.

The tutorial is for GStreamer 0.1, obviously.

Just wondering if this double-NULL needed is an intentional change in GStreamer
1.0 or a bug?

Thnaks :)

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