From: Tobias Mueller Date: Thu, 2 Jul 2015 06:52:43 +0000 (+0200) Subject: goom: Initialised variables to remove compiler warnings X-Git-Tag: 1.19.3~509^2~3435 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6faeb751708730a19f2ac9322b62afa4b086cc57;p=platform%2Fupstream%2Fgstreamer.git goom: Initialised variables to remove compiler warnings goom_core.c: In function 'goom_update': goom_core.c:685:5: error: 'param2' may be used uninitialized in this function [-Werror=maybe-uninitialized] goom_lines_switch_to (goomInfo->gmline2, mode, param2, amplitude, couleur); ^ goom_core.c:684:5: error: 'param1' may be used uninitialized in this function [-Werror=maybe-uninitialized] goom_lines_switch_to (goomInfo->gmline1, mode, param1, amplitude, couleur); ^ https://bugzilla.gnome.org/show_bug.cgi?id=752053 --- diff --git a/gst/goom/goom_core.c b/gst/goom/goom_core.c index 90b8c6f..5b1d4f7 100644 --- a/gst/goom/goom_core.c +++ b/gst/goom/goom_core.c @@ -673,7 +673,7 @@ goom_update (PluginInfo * goomInfo, gint16 data[2][512], int forceMode, */ if ((goomInfo->update.stop_lines & 0xf000) || (!goomInfo->curGState->drawScope)) { - float param1, param2, amplitude; + float param1 = 0, param2 = 0, amplitude; int couleur; int mode;