gst-plugins-good: goom2k1: Fix 'may be used uninitialized in this function' compiler warning
Sebastian Dröge
slomo at kemper.freedesktop.org
Mon Apr 2 04:00:41 PDT 2012
Module: gst-plugins-good
Branch: master
Commit: 766d3bc6b0c82c192ace1d644197c1e13e85732f
URL: http://cgit.freedesktop.org/gstreamer/gst-plugins-good/commit/?id=766d3bc6b0c82c192ace1d644197c1e13e85732f
Author: Sebastian Dröge <sebastian.droege at collabora.co.uk>
Date: Mon Apr 2 13:00:19 2012 +0200
goom2k1: Fix 'may be used uninitialized in this function' compiler warning
---
gst/goom2k1/lines.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/gst/goom2k1/lines.c b/gst/goom2k1/lines.c
index 3214e1d..bb6348f 100644
--- a/gst/goom2k1/lines.c
+++ b/gst/goom2k1/lines.c
@@ -48,6 +48,11 @@ goom_lines (GoomData * goomdata, gint16 data[2][512], unsigned int ID,
color2 = 0x00AA33DD;
break;
}
+ default:{
+ color1 = color2 = 0;
+ g_assert_not_reached ();
+ break;
+ }
}
*color = lighten (*color, power);
color++;
More information about the gstreamer-commits
mailing list