Skip to content

Commit 16ebce5

Browse files
committed
suit: Fix warning in DFU cache
Fix warning in DFU cache module, if none of IPUCs are enabled. Ref: NCSDK-NONE Signed-off-by: Tomasz Chyrowicz <[email protected]>
1 parent e9d7ff9 commit 16ebce5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

subsys/suit/cache/src/suit_dfu_cache_rw.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -803,6 +803,7 @@ static void dfu_cache_ipuc_init(void)
803803
for (size_t i = 1; i < ARRAY_SIZE(dfu_partitions_ext); i++) {
804804
/* Calculating memory-mapped address for cache pool */
805805
struct dfu_cache_partition_ext *partition = &dfu_partitions_ext[i];
806+
(void)partition; /* Suppress warning if cache IPUC is not used */
806807

807808
/* Allocate IPUC driver for DFU cache usage.
808809
* The IPUC initialization is delayed to the first write API usage.

0 commit comments

Comments
 (0)