From: Jaroslav Kysela Date: Fri, 4 Dec 2026 09:27:24 +0000 (+0100) Subject: topology: Fix compilation warnings in pre-processor.c X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=ea41c1b8c135fbb6a5a3ebcccfb55fe1d684fc81;p=alsa-utils.git topology: Fix compilation warnings in pre-processor.c Remove the set-but-unused attr_val_count variable and mark the unused tplg_pp parameter of pre_process_subtree_copy() with ATTRIBUTE_UNUSED. Signed-off-by: Jaroslav Kysela --- diff --git a/topology/pre-processor.c b/topology/pre-processor.c index 95e2a89..ccfd629 100644 --- a/topology/pre-processor.c +++ b/topology/pre-processor.c @@ -707,7 +707,6 @@ static int pre_process_create_items(struct tplg_pre_processor *tplg_pp, snd_config_iterator_t i2, next2; snd_config_t *n, *local_top; const char *attribute; - int attr_val_count = 0; object_count = *object_count_offset; n = snd_config_iterator_entry(i); @@ -789,7 +788,6 @@ static int pre_process_create_items(struct tplg_pre_processor *tplg_pp, goto err; } - attr_val_count++; err: snd_config_delete(new); if (ret < 0) { @@ -919,8 +917,8 @@ static int pre_process_arrays(struct tplg_pre_processor *tplg_pp, snd_config_t * return 0; } -static int pre_process_subtree_copy(struct tplg_pre_processor *tplg_pp, snd_config_t *curr, - snd_config_t *top) +static int pre_process_subtree_copy(struct tplg_pre_processor *tplg_pp ATTRIBUTE_UNUSED, + snd_config_t *curr, snd_config_t *top) { snd_config_iterator_t i, next; snd_config_t *subtrees;