forked from pool/alsa-utils
Takashi Iwai
d6037a30b7
- Update to alsa-utils 1.2.10: * MIDI 2.0 / UMP support for sequencer programs * nhlt: add nhlt-dmic-info utility * Build fixes and cleanups * speaker-test: allow large buffer and period time setup - up to 100 seconds * various topology fixes For details, see: https://www.alsa-project.org/wiki/Changes_v1.2.9_v1.2.10#alsa-utils - Fix the builds with old gcc: 0001-axfer-use-ATTRIBUTE_UNUSED-instead-remove-argument-n.patch 0002-amidi-use-ATTRIBUTE_UNUSED-instead-remove-argument-n.patch 0003-alsaloop-use-ATTRIBUTE_UNUSED-instead-remove-argumen.patch 0004-bat-use-ATTRIBUTE_UNUSED-instead-remove-argument-nam.patch 0005-seq-use-ATTRIBUTE_UNUSED-instead-remove-argument-nam.patch 0006-alsaucm-use-ATTRIBUTE_UNUSED-instead-remove-argument.patch 0007-topology-use-ATTRIBUTE_UNUSED-instead-remove-argumen.patch OBS-URL: https://build.opensuse.org/request/show/1108917 OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/alsa-utils?expand=0&rev=207
90 lines
3.0 KiB
Diff
90 lines
3.0 KiB
Diff
From 66112d60e4ce68720022eaf26080c0f1a2caf81f Mon Sep 17 00:00:00 2001
|
|
From: Jaroslav Kysela <perex@perex.cz>
|
|
Date: Mon, 4 Sep 2023 16:52:46 +0200
|
|
Subject: [PATCH] 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>
|
|
---
|
|
seq/aconnect/aconnect.c | 9 ++++++---
|
|
seq/aplaymidi/arecordmidi.c | 2 +-
|
|
seq/aseqdump/aseqdump.c | 2 +-
|
|
seq/aseqnet/aseqnet.c | 2 +-
|
|
4 files changed, 9 insertions(+), 6 deletions(-)
|
|
|
|
diff --git a/seq/aconnect/aconnect.c b/seq/aconnect/aconnect.c
|
|
index 3a10de9d95af..7096febfe1c1 100644
|
|
--- a/seq/aconnect/aconnect.c
|
|
+++ b/seq/aconnect/aconnect.c
|
|
@@ -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;
|
|
diff --git a/seq/aplaymidi/arecordmidi.c b/seq/aplaymidi/arecordmidi.c
|
|
index ce714728b8a2..a4c1181d3d31 100644
|
|
--- a/seq/aplaymidi/arecordmidi.c
|
|
+++ b/seq/aplaymidi/arecordmidi.c
|
|
@@ -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;
|
|
}
|
|
diff --git a/seq/aseqdump/aseqdump.c b/seq/aseqdump/aseqdump.c
|
|
index 8455ecba3d85..af4ca216ad65 100644
|
|
--- a/seq/aseqdump/aseqdump.c
|
|
+++ b/seq/aseqdump/aseqdump.c
|
|
@@ -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;
|
|
}
|
|
diff --git a/seq/aseqnet/aseqnet.c b/seq/aseqnet/aseqnet.c
|
|
index f40de7d4e044..aa70b501db8e 100644
|
|
--- a/seq/aseqnet/aseqnet.c
|
|
+++ b/seq/aseqnet/aseqnet.c
|
|
@@ -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);
|
|
--
|
|
2.35.3
|
|
|