alsaloop: use ATTRIBUTE_UNUSED instead remove argument name

We need to support older compilers than GCC 11.

Link: https://github.com/alsa-project/alsa-utils/issues/233
Fixes: d609a58 ("alsaloop: fix the verbose compilation warnings for latest gcc")
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
Jaroslav Kysela 2023-09-04 16:45:09 +02:00
parent 2db896afd4
commit 7552aef6e0
2 changed files with 3 additions and 3 deletions

View file

@ -821,7 +821,7 @@ static void send_to_all(int sig)
}
}
static void signal_handler(int)
static void signal_handler(int sig ATTRIBUTE_UNUSED)
{
quit = 1;
send_to_all(SIGUSR2);

View file

@ -625,7 +625,7 @@ static void buf_add_src(struct loopback *loop)
}
}
#else
static void buf_add_src(struct loopback *)
static void buf_add_src(struct loopback *loop ATTRIBUTE_UNUSED)
{
}
#endif
@ -1794,7 +1794,7 @@ static int ctl_event_check(snd_ctl_elem_value_t *val, snd_ctl_event_t *ev)
}
static int handle_ctl_events(struct loopback_handle *lhandle,
unsigned short)
unsigned short events ATTRIBUTE_UNUSED)
{
struct loopback *loop = lhandle->loopback;
snd_ctl_event_t *ev;