mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-06 13:29:59 -05:00
topology: fix some gcc10 warnings (labs, signess)
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
parent
dc778bade6
commit
6ca1ddfbcd
2 changed files with 2 additions and 2 deletions
|
|
@ -55,7 +55,7 @@ static ssize_t write_block_header(snd_tplg_t *tplg, unsigned int type,
|
|||
" offset 0x%zx is %s by %ld bytes",
|
||||
tplg->next_hdr_pos, tplg->bin_pos,
|
||||
tplg->bin_pos > tplg->next_hdr_pos ? "ahead" : "behind",
|
||||
labs(tplg->bin_pos - tplg->next_hdr_pos));
|
||||
tplg->bin_pos - tplg->next_hdr_pos);
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1363,7 +1363,7 @@ int tplg_decode_control_enum1(snd_tplg_t *tplg,
|
|||
et->texts = tplg_calloc(heap, sizeof(char *) * ec->items);
|
||||
if (!et->texts)
|
||||
return -ENOMEM;
|
||||
for (i = 0; i < ec->items; i++)
|
||||
for (i = 0; (unsigned int)i < ec->items; i++)
|
||||
et->texts[i] = ec->texts[i];
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue