Init len_wrap = 0 to fix compiler complains.

This commit is contained in:
Reinhard Panhuber 2021-04-23 10:47:22 +02:00
parent 4dd1f1f3b5
commit a98d0217a0
1 changed files with 2 additions and 2 deletions

View File

@ -650,7 +650,7 @@ static bool audiod_decode_type_I_pcm(uint8_t rhport, audiod_function_t* audio, u
void * dst, * dst_wrap;
uint8_t * src;
uint8_t * dst_end;
uint16_t len, len_wrap;
uint16_t len, len_wrap = 0;
for (cnt_ff = 0; cnt_ff < n_ff_used; cnt_ff++)
{
@ -976,7 +976,7 @@ static uint16_t audiod_encode_type_I_pcm(uint8_t rhport, audiod_function_t* audi
void * src, * src_wrap;
uint8_t * dst;
uint8_t * src_end;
uint16_t len, len_wrap;
uint16_t len, len_wrap = 0; // Give len_wrap a value such that compiler does not complain - although it gets initialized in any case...
for (cnt_ff = 0; cnt_ff < n_ff_used; cnt_ff++)
{