[Bug 796093] gstmodule: fix warning

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Mon May 14 11:49:23 UTC 2018


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

--- Comment #2 from Håvard Graff (hgr) <havard.graff at gmail.com> ---
(In reply to Thibault Saunier from comment #1)
> Review of attachment 371990 [details] [review]:
> 
> I am not getting that warning and can't see where/how it could happen, can
> you show the whole warning please?

  CC       _gi_gst_la-gstmodule.lo
/home/havard/Code/pexnote/external/gstreamer/gst-python/gi/overrides/gstmodule.c:
In function ‘gi_gst_get_type’:
/home/havard/Code/pexnote/external/gstreamer/gst-python/gi/overrides/gstmodule.c:93:41:
warning: passing argument 2 of ‘PyMapping_GetItemString’ discards ‘const’
qualifier from pointer target type [-Wdiscarded-qualifiers]
   return PyMapping_GetItemString (dict, type_name);
                                         ^
In file included from /usr/include/python2.7/Python.h:133:0,
                 from
/home/havard/Code/pexnote/external/gstreamer/gst-python/gi/overrides/gstmodule.c:29:
/usr/include/python2.7/abstract.h:1356:29: note: expected ‘char *’ but argument
is of type ‘const gchar * {aka const char *}’
      PyAPI_FUNC(PyObject *) PyMapping_GetItemString(PyObject *o, char *key);
                             ^
  CCLD     _gi_gst.la

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