[Bug 733362] New: validate: duplicate strings in gst_validate_issue_new()

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Fri Jul 18 07:19:57 PDT 2014


https://bugzilla.gnome.org/show_bug.cgi?id=733362
  GStreamer | gst-devtools | git

           Summary: validate: duplicate strings in
                    gst_validate_issue_new()
    Classification: Platform
           Product: GStreamer
           Version: git
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: Normal
         Component: gst-devtools
        AssignedTo: gstreamer-bugs at lists.freedesktop.org
        ReportedBy: aurelien.zanelli at parrot.com
         QAContact: gstreamer-bugs at lists.freedesktop.org
     GNOME version: ---


When compiling validate tools with -Wwrite-strings -Werror, I have:

gst-devtools/validate/gst/validate/gst-validate-report.c:65:1: note: expected
'gchar *' but argument is of type const char *'
gst-devtools/validate/gst/validate/gst-validate-report.c:182:3: error: passing
argument 2 of 'gst_validate_issue_new' discards 'const' qualifier from pointer
target type [-Werror]

due to the fact that gst_validate_issue_new() discard 'const' qualifier and we
use it with constant strings. Also it will cause some issue with the free
method.

-- 
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- 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