Commit 572b8fb2 authored by Jamie McCrae's avatar Jamie McCrae Committed by Jamie
Browse files

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: default avatarJamie McCrae <jamie.mccrae@nordicsemi.no>
parent 6678c37c
Loading
Loading
Loading
Loading
+2 −1
Changes for boot/zephyr/flash_map_extended.c: 2 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -66,7 +66,8 @@ int flash_device_base(uint8_t fd_id, uintptr_t *ret)
 */
int flash_area_id_from_multi_image_slot(int image_index, int slot)
{
    int rc, id;
    int rc;
    int id = -1;

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