From cf984fcd4c0a8dbb0993f8120c6f2cfb07360b5e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Barnab=C3=A1s=20P=C5=91cze?= Date: Thu, 7 Mar 2024 13:48:56 +0100 Subject: [PATCH] spa: alsa: fix clang build Variable declarations after a label are not allowed, and clang does not accept them. Fix the build failure by removing the variable. Fixes b3fbd0e60703d6 ("alsa-pcm: add_bind_ctl_param: add support for array") --- spa/plugins/alsa/alsa-pcm.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/spa/plugins/alsa/alsa-pcm.c b/spa/plugins/alsa/alsa-pcm.c index 05d9882fe..aa69b20a9 100644 --- a/spa/plugins/alsa/alsa-pcm.c +++ b/spa/plugins/alsa/alsa-pcm.c @@ -470,8 +470,7 @@ static void add_bind_ctl_param(struct state *state, const snd_ctl_elem_value_t * break; case SND_CTL_ELEM_TYPE_BYTES: - const void* bytes = snd_ctl_elem_value_get_bytes(elem); - spa_pod_builder_bytes(b, bytes, count); + spa_pod_builder_bytes(b, snd_ctl_elem_value_get_bytes(elem), count); break; default: