tag: xmp: Fix a build warning when compiling with asserts disabled
authorVincent Untz <vuntz@gnome.org>
Tue, 21 Feb 2012 15:43:59 +0000 (16:43 +0100)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Tue, 21 Feb 2012 16:07:04 +0000 (16:07 +0000)
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

index 1fb7f39..5a51f62 100644 (file)
@@ -173,8 +173,11 @@ xmp_tag_type_get_name (GstXmpTagType tagtype)
     case GstXmpTagTypeBag:
       return "rdf:Bag";
     default:
     case GstXmpTagTypeBag:
       return "rdf:Bag";
     default:
-      g_assert_not_reached ();
+      break;
   }
   }
+
+  /* Make compiler happy */
+  g_return_val_if_reached ("");
 }
 
 struct _PendingXmpTag
 }
 
 struct _PendingXmpTag