diff --git a/src/ipc/ipc4/helper.c b/src/ipc/ipc4/helper.c index f727d212f179..1bbe23acabb7 100644 --- a/src/ipc/ipc4/helper.c +++ b/src/ipc/ipc4/helper.c @@ -942,7 +942,7 @@ int ipc4_process_on_core(uint32_t core, bool blocking) __cold static const struct comp_driver *ipc4_get_drv(const void *uuid) { - const struct sof_uuid *const sof_uuid = (const struct sof_uuid *)uuid; + const struct sof_uuid *const sof_uuid __maybe_unused = (const struct sof_uuid *)uuid; struct comp_driver_list *drivers = comp_drivers_get(); struct list_item *clist; const struct comp_driver *drv = NULL; diff --git a/src/platform/posix/ipc.c b/src/platform/posix/ipc.c index b8c54b9a38d9..f9fc0213987f 100644 --- a/src/platform/posix/ipc.c +++ b/src/platform/posix/ipc.c @@ -45,8 +45,6 @@ static size_t fuzz_in_sz; static void fuzz_isr(const void *arg) { size_t rem, i, n = MIN(posix_fuzz_sz, sizeof(fuzz_in) - fuzz_in_sz); - bool comp_new = false; - int comp_idx = 0; for (i = 0; i < n; i++) fuzz_in[fuzz_in_sz++] = posix_fuzz_buf[i]; @@ -68,6 +66,9 @@ static void fuzz_isr(const void *arg) fuzz_in_sz = rem; #ifdef CONFIG_IPC_MAJOR_3 + bool comp_new = false; + int comp_idx = 0; + // One special case: a first byte of 0xff (which is in the // otherwise-ignored size value at the front of the command -- // we rewrite those) is interpreted as a "component new"