pulse: Fix a build warning when compiling with asserts disabled
authorVincent Untz <vuntz@gnome.org>
Tue, 21 Feb 2012 16:57:44 +0000 (17:57 +0100)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Tue, 21 Feb 2012 20:12:06 +0000 (20:12 +0000)
Return a value even if the code will never be reached, to make compilers
happy.

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

ext/pulse/pulseaudiosink.c

index cd9f7d914b847f530b321d6ccd4c16e8f2ffb571..22b439b471dffb735bfd7b2326ac1db06d5df4da 100644 (file)
@@ -279,7 +279,9 @@ param_spec_copy (GParamSpec * spec)
 
   g_warning ("Unknown param type %ld for '%s'",
       (long) G_PARAM_SPEC_TYPE (spec), name);
-  g_assert_not_reached ();
+
+  /* Make compiler happy */
+  return NULL;
 }
 
 static void