[SCM] calf/master: + VU Meter: fix compiler warning
js at users.alioth.debian.org
js at users.alioth.debian.org
Tue May 7 15:38:05 UTC 2013
The following commit has been merged in the master branch:
commit 2b513569802f0e8201e580d8dc48ef87c7fc1814
Author: Krzysztof Foltman <wdev at foltman.com>
Date: Fri Oct 31 23:37:59 2008 +0000
+ VU Meter: fix compiler warning
diff --git a/src/custom_ctl.cpp b/src/custom_ctl.cpp
index 7a3c77e..b06dc60 100644
--- a/src/custom_ctl.cpp
+++ b/src/custom_ctl.cpp
@@ -195,10 +195,11 @@ calf_vumeter_expose (GtkWidget *widget, GdkEventExpose *event)
for (int x = ox; x <= ox + sx; x += 3)
{
float ts = (x - ox) * 1.0 / sx;
- float r, g, b;
+ float r = 0.f, g = 0.f, b = 0.f;
switch(mode)
{
case VU_STANDARD:
+ default:
if (ts < 0.75)
r = ts / 0.75, g = 1, b = 0;
else
--
calf audio plugins packaging
More information about the pkg-multimedia-commits
mailing list