Page MenuHomePhabricator

MCUBoot build fail with Minsizerel
Closed, ResolvedPublic

Description

Build error occurred when:

  • PSA API test protected storage test suite
  • DCMAKE_BUILD_TYPE=Minsizerel
  • GNUARM 7.3.1
  • DMCUBOOT_UPDATE_STRATEGY=NO_SWAP
/home/karlzh/tfm-ci/tf-m/bl2/ext/mcuboot/bootutil/src/loader.c: In function 'context_boot_go':
/home/karlzh/tfm-ci/tf-m/bl2/ext/mcuboot/bootutil/src/loader.c:2823:10: error: 'selected_image_header' may be used uninitialized in this function [-Werror=maybe-uninitialized]
     rc = boot_save_boot_status(SW_S_NS,
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                                rsp->br_hdr,
                                ~~~~~~~~~~~~
                                BOOT_IMG_AREA(state, slot));
                                ~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors

Event Timeline

Karl added a subscriber: Karl.Apr 27 2020, 8:26 AM
tamasban closed this task as Resolved.Thu, May 14, 7:31 AM