Commit aaf767cf authored by Fabio Utzig's avatar Fabio Utzig Committed by David Brown
Browse files

Fix warning in overwrite only

Signed-off-by: default avatarFabio Utzig <utzig@apache.org>
parent 181e54c3
Loading
Loading
Loading
Loading
+2
Changes for boot/bootutil/src/loader.c: 2 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -1012,6 +1012,8 @@ boot_copy_image(struct boot_status *bs)
    size_t this_size;
    size_t last_sector;

    (void)bs;

#if defined(MCUBOOT_OVERWRITE_ONLY_FAST)
    uint32_t src_size = 0;
    rc = boot_read_image_size(1, boot_img_hdr(&boot_data, 1), &src_size);