From a32e030faadeb538b05ecc7920d74db9efedf4d4 Mon Sep 17 00:00:00 2001 From: Vincent Untz 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 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ext/pulse/pulseaudiosink.c b/ext/pulse/pulseaudiosink.c index cd9f7d914b..22b439b471 100644 --- a/ext/pulse/pulseaudiosink.c +++ b/ext/pulse/pulseaudiosink.c @@ -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