mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-10-02 16:52:42 +00:00
goom: possible uninitialized variables warning
Build fails with the latest snapshot of gcc-4.9 because param1 and param2 might possibly be used uninitialized. They are set depending on the cases of a switch statement and the compiler sees this as not a complete guarantee. Set them to 0 if the switch statement falls down to the default case. https://bugzilla.gnome.org/show_bug.cgi?id=750566#c6
This commit is contained in:
parent
b5d66d68ce
commit
e56ef6bcf0
1 changed files with 3 additions and 0 deletions
|
@ -847,6 +847,9 @@ choose_a_goom_line (PluginInfo * goomInfo, float *param1, float *param2,
|
|||
*amplitude = 1.5f;
|
||||
}
|
||||
break;
|
||||
default:
|
||||
*param1 = *param2 = 0;
|
||||
break;
|
||||
}
|
||||
|
||||
*couleur = goom_irand (goomInfo->gRandom, 6);
|
||||
|
|
Loading…
Reference in a new issue