Skip to content

Commit d9ebdb0

Browse files
committed
ipc4: fix an "unused variable" warning, found by a fuzzer
If logging is disabled, the sof_uuid variable in ipc4_get_drv() will be unused. Add an attribute to fix a compilation failure. Signed-off-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
1 parent 8386366 commit d9ebdb0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ipc/ipc4/helper.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -942,7 +942,7 @@ int ipc4_process_on_core(uint32_t core, bool blocking)
942942

943943
__cold static const struct comp_driver *ipc4_get_drv(const void *uuid)
944944
{
945-
const struct sof_uuid *const sof_uuid = (const struct sof_uuid *)uuid;
945+
const struct sof_uuid *const sof_uuid __maybe_unused = (const struct sof_uuid *)uuid;
946946
struct comp_driver_list *drivers = comp_drivers_get();
947947
struct list_item *clist;
948948
const struct comp_driver *drv = NULL;

0 commit comments

Comments
 (0)