Skip to content

Commit dbfba99

Browse files
committed
Platform: POSIX: Avoid warning/error about unused
This change avoid errors: sof/src/platform/posix/ipc.c:48:7: error: unused variable 'comp_new' [-Werror,-Wunused-variable] sof/src/platform/posix/ipc.c:49:6: error: unused variable 'comp_idx' [-Werror,-Wunused-variable] Signed-off-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>
1 parent 042117b commit dbfba99

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/platform/posix/ipc.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,6 @@ static size_t fuzz_in_sz;
4545
static void fuzz_isr(const void *arg)
4646
{
4747
size_t rem, i, n = MIN(posix_fuzz_sz, sizeof(fuzz_in) - fuzz_in_sz);
48-
bool comp_new = false;
49-
int comp_idx = 0;
5048

5149
for (i = 0; i < n; i++)
5250
fuzz_in[fuzz_in_sz++] = posix_fuzz_buf[i];
@@ -68,6 +66,9 @@ static void fuzz_isr(const void *arg)
6866
fuzz_in_sz = rem;
6967

7068
#ifdef CONFIG_IPC_MAJOR_3
69+
bool comp_new = false;
70+
int comp_idx = 0;
71+
7172
// One special case: a first byte of 0xff (which is in the
7273
// otherwise-ignored size value at the front of the command --
7374
// we rewrite those) is interpreted as a "component new"

0 commit comments

Comments
 (0)