[Bug 793592] New: crtp-server: compilation error with clang

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Mon Feb 19 11:00:56 UTC 2018


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

            Bug ID: 793592
           Summary: crtp-server: compilation error with clang
    Classification: Platform
           Product: GStreamer
           Version: unspecified
                OS: All
            Status: NEW
          Severity: normal
          Priority: Normal
         Component: gst-rtsp-server
          Assignee: gstreamer-bugs at lists.freedesktop.org
          Reporter: vjaquez at igalia.com
        QA Contact: gstreamer-bugs at lists.freedesktop.org
     GNOME version: ---

When compiling with clang this compilation error is raised:

Making all in rtsp-server
make[3]: Entering directory '/opt/gst/master/gst-rtsp-server/gst/rtsp-server'
  CC       libgstrtspserver_1.0_la-rtsp-onvif-media.lo
rtsp-onvif-media.c:103:16: error: variable 'res' is used uninitialized whenever
'if' condition is false [-Werror,-Wsometimes-uninitialized]
    } else if (!sinkpad && !gst_caps_is_fixed (caps)) {
               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
rtsp-onvif-media.c:111:17: note: uninitialized use occurs here
    for (j = 0; res && j < n_caps; j++) {
                ^~~
rtsp-onvif-media.c:103:12: note: remove the 'if' if its condition is always
true
    } else if (!sinkpad && !gst_caps_is_fixed (caps)) {
           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
rtsp-onvif-media.c:103:16: error: variable 'res' is used uninitialized whenever
'&&' condition is false [-Werror,-Wsometimes-uninitialized]
    } else if (!sinkpad && !gst_caps_is_fixed (caps)) {
               ^~~~~~~~
rtsp-onvif-media.c:111:17: note: uninitialized use occurs here
    for (j = 0; res && j < n_caps; j++) {
                ^~~
rtsp-onvif-media.c:103:16: note: remove the '&&' if its condition is always
true
    } else if (!sinkpad && !gst_caps_is_fixed (caps)) {
               ^~~~~~~~~~~
rtsp-onvif-media.c:82:17: note: initialize the variable 'res' to silence this
warning
    gboolean res;
                ^
                 = 0
2 errors generated.

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