]> git.alsa-project.org Git - alsa-utils.git/commitdiff
seq: use ATTRIBUTE_UNUSED instead remove argument name
authorJaroslav Kysela <perex@perex.cz>
Mon, 4 Sep 2023 14:52:46 +0000 (16:52 +0200)
committerJaroslav Kysela <perex@perex.cz>
Mon, 4 Sep 2023 14:54:14 +0000 (16:54 +0200)
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>
seq/aconnect/aconnect.c
seq/aplaymidi/arecordmidi.c
seq/aseqdump/aseqdump.c
seq/aseqnet/aseqnet.c

index 3a10de9d95af873c2678647466e0da0588df787c..7096febfe1c10a8a376b7996c1621f4de6ffc744 100644 (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)
 {
        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
  */
-static void remove_connection(snd_seq_t *seq, snd_seq_client_info_t *,
-                             snd_seq_port_info_t *pinfo, int)
+static void remove_connection(snd_seq_t *seq,
+                             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_port_info_t *port;
index ce714728b8a2e4691307e89a3fd476c361b08b0a..a4c1181d3d313b0a49e7e3718a7c7d842cd59c5f 100644 (file)
@@ -719,7 +719,7 @@ static void version(void)
        fputs("arecordmidi version " SND_UTIL_VERSION_STR "\n", stderr);
 }
 
-static void sighandler(int)
+static void sighandler(int sig ATTRIBUTE_UNUSED)
 {
        stop = 1;
 }
index 8455ecba3d858426772aaab57fa3b1f15cf47ec3..af4ca216ad65daa8180205aae642264b69f26608 100644 (file)
@@ -676,7 +676,7 @@ static void version(void)
        puts("aseqdump version " SND_UTIL_VERSION_STR);
 }
 
-static void sighandler(int)
+static void sighandler(int sig ATTRIBUTE_UNUSED)
 {
        stop = 1;
 }
index f40de7d4e0441c2a3a5e9bb9bb6011d0ff385f45..aa70b501db8e7d3a939b0be9adccfdd3681f45bb 100644 (file)
@@ -334,7 +334,7 @@ static void get_net_addr(struct addrinfo *rp, char *buf, size_t buflen)
 /*
  * signal handler
  */
-static void sigterm_exit(int)
+static void sigterm_exit(int sig ATTRIBUTE_UNUSED)
 {
        close_files();
        exit(1);