seq: 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: 181e190 ("aplaymidi: fix the verbose compilation warnings for latest gcc")
Fixes: a03377a ("aseqnet: fix the verbose compilation warnings for latest gcc")
Fixes: 429c32a ("aseqdump: fix the verbose compilation warnings for latest gcc")
Fixes: 0b48dd6 ("aconnect: 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:52:46 +02:00
parent 94eeb5a40f
commit 66112d60e4
4 changed files with 9 additions and 6 deletions

View file

@ -193,7 +193,8 @@ static void do_search_port(snd_seq_t *seq, int perm, action_func_t do_action)
} }
static void print_port(snd_seq_t *, snd_seq_client_info_t *cinfo, static void print_port(snd_seq_t *seq ATTRIBUTE_UNUSED,
snd_seq_client_info_t *cinfo,
snd_seq_port_info_t *pinfo, int count) snd_seq_port_info_t *pinfo, int count)
{ {
if (! count) { if (! count) {
@ -247,8 +248,10 @@ static void print_port_and_subs(snd_seq_t *seq, snd_seq_client_info_t *cinfo,
/* /*
* remove all (exported) connections * remove all (exported) connections
*/ */
static void remove_connection(snd_seq_t *seq, snd_seq_client_info_t *, static void remove_connection(snd_seq_t *seq,
snd_seq_port_info_t *pinfo, int) snd_seq_client_info_t *info ATTRIBUTE_UNUSED,
snd_seq_port_info_t *pinfo,
int count ATTRIBUTE_UNUSED)
{ {
snd_seq_query_subscribe_t *query; snd_seq_query_subscribe_t *query;
snd_seq_port_info_t *port; snd_seq_port_info_t *port;

View file

@ -719,7 +719,7 @@ static void version(void)
fputs("arecordmidi version " SND_UTIL_VERSION_STR "\n", stderr); fputs("arecordmidi version " SND_UTIL_VERSION_STR "\n", stderr);
} }
static void sighandler(int) static void sighandler(int sig ATTRIBUTE_UNUSED)
{ {
stop = 1; stop = 1;
} }

View file

@ -676,7 +676,7 @@ static void version(void)
puts("aseqdump version " SND_UTIL_VERSION_STR); puts("aseqdump version " SND_UTIL_VERSION_STR);
} }
static void sighandler(int) static void sighandler(int sig ATTRIBUTE_UNUSED)
{ {
stop = 1; stop = 1;
} }

View file

@ -334,7 +334,7 @@ static void get_net_addr(struct addrinfo *rp, char *buf, size_t buflen)
/* /*
* signal handler * signal handler
*/ */
static void sigterm_exit(int) static void sigterm_exit(int sig ATTRIBUTE_UNUSED)
{ {
close_files(); close_files();
exit(1); exit(1);