mirror of
https://github.com/hathach/tinyusb.git
synced 2025-03-28 16:20:26 +00:00
Init len_wrap = 0 to fix compiler complains.
This commit is contained in:
parent
4dd1f1f3b5
commit
a98d0217a0
@ -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++)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user