]> git.alsa-project.org Git - alsa-utils.git/commitdiff
topology: Fix compilation warnings in pre-processor.c
authorJaroslav Kysela <perex@perex.cz>
Fri, 4 Dec 2026 09:27:24 +0000 (10:27 +0100)
committerJaroslav Kysela <perex@perex.cz>
Fri, 4 Dec 2026 09:29:37 +0000 (10:29 +0100)
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 <perex@perex.cz>
topology/pre-processor.c

index 95e2a897c7c53ebd91a4dd9e3f8d9919624d51de..ccfd629b04f281d62fff723dbef42b7307778b50 100644 (file)
@@ -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;