From 5c3f7b51ce31fdcc31a2d8ef0d3154a40c1e927d Mon Sep 17 00:00:00 2001 From: Vincent Untz Date: Tue, 21 Feb 2012 16:43:59 +0100 Subject: [PATCH] tag: xmp: Fix a build warning when compiling with asserts disabled Return a value even if the code will never be reached, to make compilers happy. https://bugzilla.gnome.org/show_bug.cgi?id=670548 --- gst-libs/gst/tag/gstxmptag.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gst-libs/gst/tag/gstxmptag.c b/gst-libs/gst/tag/gstxmptag.c index 1fb7f3945b..5a51f62cd3 100644 --- a/gst-libs/gst/tag/gstxmptag.c +++ b/gst-libs/gst/tag/gstxmptag.c @@ -173,8 +173,11 @@ xmp_tag_type_get_name (GstXmpTagType tagtype) case GstXmpTagTypeBag: return "rdf:Bag"; default: - g_assert_not_reached (); + break; } + + /* Make compiler happy */ + g_return_val_if_reached (""); } struct _PendingXmpTag