From 4b4af4ea59d9fc9f489defffd94e9141098b0bf1 Mon Sep 17 00:00:00 2001 From: Thierry Bultel Date: Mon, 4 Jun 2018 15:24:37 +0200 Subject: Fixed compilation issues with gcc >= 7.2 Fixed some warnings about uninitialized variables --- plugins/alsa/alsa-effect-ramp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins/alsa/alsa-effect-ramp.c') 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); -- cgit 1.2.3-korg