[Bug 789983] New: gstdevicemonitor: Avoid maybe-uninitialized error

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Mon Nov 6 19:50:18 UTC 2017


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

            Bug ID: 789983
           Summary: gstdevicemonitor: Avoid maybe-uninitialized error
    Classification: Platform
           Product: GStreamer
           Version: git master
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: Normal
         Component: gstreamer (core)
          Assignee: gstreamer-bugs at lists.freedesktop.org
          Reporter: jan.steffens at gmail.com
        QA Contact: gstreamer-bugs at lists.freedesktop.org
     GNOME version: ---

Created attachment 363075
  --> https://bugzilla.gnome.org/attachment.cgi?id=363075&action=edit
[PATCH] gstdevicemonitor: Avoid maybe-uninitialized error

On Arch Linux x86_64, gcc 7.2.0-3, -Og -g3:

gstdevicemonitor.c: In function ‘bus_sync_message’:
gstdevicemonitor.c:276:8: error: ‘matches’ may be used uninitialized in this
function [-Werror=maybe-uninitialized]

This commit also simplifies the code a bit.



I gave up on attempting to compile without --disable-fatal-warnings after
encountering way too many of them in gst-plugins-good.

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