Skip to content

Commit 572b8fb

Browse files
committed
boot: zephyr: flash_map_extended: Add pointless workaround for clang
Clang wrongly throws a warning, which will be treated as an error in twister builds, add pointless workaround to set variable that is already set by the hook function to avoid this Signed-off-by: Jamie McCrae <[email protected]>
1 parent 6678c37 commit 572b8fb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

boot/zephyr/flash_map_extended.c

+2-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,8 @@ int flash_device_base(uint8_t fd_id, uintptr_t *ret)
6666
*/
6767
int flash_area_id_from_multi_image_slot(int image_index, int slot)
6868
{
69-
int rc, id;
69+
int rc;
70+
int id = -1;
7071

7172
rc = BOOT_HOOK_FLASH_AREA_CALL(flash_area_id_from_multi_image_slot_hook,
7273
BOOT_HOOK_REGULAR, image_index, slot, &id);

0 commit comments

Comments
 (0)