File gstreamer-0_10-plugins-good-missing-return-value.patch of Package gstreamer-0_10-plugins-good
From 14b8ef817f8bce2003cf4ab94b7b331431eb8950 Mon Sep 17 00:00:00 2001
From: Vincent Untz <vuntz@gnome.org>
Date: Tue, 21 Feb 2012 17:57:44 +0100
Subject: [PATCH] pulse: 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=670561
---
ext/pulse/pulseaudiosink.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/ext/pulse/pulseaudiosink.c b/ext/pulse/pulseaudiosink.c
index cd9f7d9..c88fc0e 100644
--- a/ext/pulse/pulseaudiosink.c
+++ b/ext/pulse/pulseaudiosink.c
@@ -280,6 +280,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
--
1.7.9