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:
Luis de Bethencourt 2015-06-08 23:00:16 +01:00
parent b5d66d68ce
commit e56ef6bcf0

View file

@ -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);