summaryrefslogtreecommitdiffstats
path: root/plugins/alsa/alsa-effect-ramp.c
diff options
context:
space:
mode:
authorThierry Bultel <thierry.bultel@iot.bzh>2018-06-04 15:24:37 +0200
committerThierry Bultel <thierry.bultel@iot.bzh>2018-06-04 15:24:37 +0200
commit4b4af4ea59d9fc9f489defffd94e9141098b0bf1 (patch)
tree0d893754ff7db90e74833a18cd97f0b269c2e791 /plugins/alsa/alsa-effect-ramp.c
parente5aff5427335422ba8c8487e880e150d15d0cb0b (diff)
Fixed compilation issues with gcc >= 7.2
Fixed some warnings about uninitialized variables
Diffstat (limited to 'plugins/alsa/alsa-effect-ramp.c')
-rw-r--r--plugins/alsa/alsa-effect-ramp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/alsa/alsa-effect-ramp.c b/plugins/alsa/alsa-effect-ramp.c
index 86bdd24..361ff05 100644
--- a/plugins/alsa/alsa-effect-ramp.c
+++ b/plugins/alsa/alsa-effect-ramp.c
@@ -86,6 +86,7 @@ PUBLIC int AlsaVolRampApply(SoftMixerT *mixer, AlsaSndCtlT *sndcard, AlsaStreamA
json_object *volJ;
int error, index;
uint64_t usec;
+ int count = 0;
error = wrap_json_unpack(rampJ, "{ss so !}"
, "uid", &uid
@@ -97,8 +98,7 @@ PUBLIC int AlsaVolRampApply(SoftMixerT *mixer, AlsaSndCtlT *sndcard, AlsaStreamA
}
switch (json_object_get_type(volJ)) {
- int count;
-
+
case json_type_string:
volS = json_object_get_string(volJ);