Commit 6b1b3b92 authored by David Brown's avatar David Brown Committed by David Brown
Browse files

Fix warning on overwrite-only

This function is unused in overwrite-only mode.  Clang seems to catch
this, whereas gcc does not.  Add the proper ifdefs so that the
simulator tests all pass on MacOS.

Signed-off-by: default avatarDavid Brown <david.brown@linaro.org>
parent b6984182
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
@@ -779,6 +779,7 @@ done:
    return rc;
}

#ifndef MCUBOOT_OVERWRITE_ONLY
static inline int
boot_status_init_by_id(int flash_area_id, const struct boot_status *bs)
{
@@ -807,6 +808,7 @@ boot_status_init_by_id(int flash_area_id, const struct boot_status *bs)

    return 0;
}
#endif

#ifndef MCUBOOT_OVERWRITE_ONLY
static int