taglist: remove `return void` in gst_tag_register
authorScott D Phillips <scott.d.phillips@intel.com>
Fri, 11 Nov 2016 18:23:17 +0000 (10:23 -0800)
committerSebastian Dröge <sebastian@centricular.com>
Sat, 12 Nov 2016 08:50:33 +0000 (10:50 +0200)
MSVC warns on this and the documentation about the warning says:

> The compiler assumes the function returns a value of type int

which is a little scary, so lets just remove the unnecessary 'return'

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

gst/gsttaglist.c

index f5ce995..e851961 100644 (file)
@@ -509,7 +509,7 @@ gst_tag_register (const gchar * name, GstTagFlag flag, GType type,
   g_return_if_fail (blurb != NULL);
   g_return_if_fail (type != 0 && type != GST_TYPE_LIST);
 
-  return gst_tag_register_static (g_intern_string (name), flag, type,
+  gst_tag_register_static (g_intern_string (name), flag, type,
       g_intern_string (nick), g_intern_string (blurb), func);
 }