iecset: fix the verbose compilation warnings for latest gcc

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
Jaroslav Kysela 2023-08-30 12:37:12 +02:00
parent 10a2557d7e
commit 7c54fb5ebe

View file

@ -379,7 +379,7 @@ int main(int argc, char **argv)
for (cidx = 0; cidx < controls; cidx++) {
if (!strcmp(snd_ctl_elem_list_get_name(clist, cidx), spdif_str))
if (spdif_index < 0 ||
snd_ctl_elem_list_get_index(clist, cidx) == spdif_index)
(int)snd_ctl_elem_list_get_index(clist, cidx) == spdif_index)
break;
}
if (cidx >= controls) {