From: Takashi Iwai Date: Tue, 5 Apr 2005 15:53:24 +0000 (+0000) Subject: Compile warning fixes X-Git-Tag: v1.0.9rc3~20 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=999609f7e072a64260dc0d0f4db4772b6542829c;p=alsa-lib.git Compile warning fixes Trivial compile warning fixes. --- diff --git a/src/pcm/pcm_rate.c b/src/pcm/pcm_rate.c index 209e7003..0b725b5c 100644 --- a/src/pcm/pcm_rate.c +++ b/src/pcm/pcm_rate.c @@ -111,7 +111,7 @@ static void snd_pcm_rate_expand(const snd_pcm_channel_area_t *dst_areas, const char *src; char *dst; int src_step, dst_step; - int16_t old_sample; + int16_t old_sample = 0; int16_t new_sample; int old_weight, new_weight; src = snd_pcm_channel_area_addr(src_area, src_offset); @@ -175,7 +175,7 @@ static void snd_pcm_rate_expand_s16(const snd_pcm_channel_area_t *dst_areas, const int16_t *src; int16_t *dst; int src_step, dst_step; - int16_t old_sample; + int16_t old_sample = 0; int16_t new_sample; int old_weight, new_weight; src = snd_pcm_channel_area_addr(src_area, src_offset);