[Bug 656264] New: E: gstreamer-plugins-base no-return-in-nonvoid-function gstxmptag.c:178
GStreamer (bugzilla.gnome.org)
bugzilla at gnome.org
Wed Aug 10 02:51:22 PDT 2011
https://bugzilla.gnome.org/show_bug.cgi?id=656264
GStreamer | gst-plugins-base | git
Summary: E: gstreamer-plugins-base
no-return-in-nonvoid-function gstxmptag.c:178
Classification: Platform
Product: GStreamer
Version: git
OS/Version: Linux
Status: UNCONFIRMED
Severity: normal
Priority: Normal
Component: gst-plugins-base
AssignedTo: gstreamer-bugs at lists.freedesktop.org
ReportedBy: dominique-gnomezilla at leuenberger.net
QAContact: gstreamer-bugs at lists.freedesktop.org
GNOME version: ---
While building gstreamer 0.11.0 on the Open Build Service (*target openSUSE
Factory/12.1), The build aborts with:
I: Program returns random data in a function
E: gstreamer-plugins-base no-return-in-nonvoid-function gstxmptag.c:178
The raised compiler warning from the build log is:
gstxmptag.c: In function 'xmp_tag_type_get_name':
gstxmptag.c:178:1: warning: control reaches end of non-void function
[-Wreturn-type]
The code fragment in question:
static const gchar *
xmp_tag_type_get_name (GstXmpTagType tagtype)
{
switch (tagtype) {
case GstXmpTagTypeSeq:
return "rdf:Seq";
case GstXmpTagTypeBag:
return "rdf:Bag";
default:
g_assert_not_reached ();
}
}
==> Thus: the 'default' path does not have a return value for the function. I
assume returning NULL might be safe/sufficient?
--
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