]> git.alsa-project.org Git - alsa-lib.git/commitdiff
Compile warning fixes
authorTakashi Iwai <tiwai@suse.de>
Tue, 5 Apr 2005 15:53:24 +0000 (15:53 +0000)
committerTakashi Iwai <tiwai@suse.de>
Tue, 5 Apr 2005 15:53:24 +0000 (15:53 +0000)
Trivial compile warning fixes.

src/pcm/pcm_rate.c

index 209e7003411efa889307f90697dde978186a7798..0b725b5cd21638a75dc8c69ec68ec3fc76678904 100644 (file)
@@ -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);