Skip to content

Commit

Permalink
boot: main: avoid unused build warning
Browse files Browse the repository at this point in the history
In case ESP32 SoC is used, *start will get
build warning as it is not used.

Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
  • Loading branch information
sylvioalves committed Jul 1, 2024
1 parent 1d79ef3 commit 8b74eb3
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions boot/zephyr/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -277,8 +277,6 @@ static void copy_img_to_SRAM(int slot, unsigned int hdr_offset)
*/
static void do_boot(struct boot_rsp *rsp)
{
void *start;

BOOT_LOG_INF("br_image_off = 0x%x\n", rsp->br_image_off);
BOOT_LOG_INF("ih_hdr_size = 0x%x\n", rsp->br_hdr->ih_hdr_size);

Expand All @@ -292,7 +290,7 @@ static void do_boot(struct boot_rsp *rsp)
copy_img_to_SRAM(0, rsp->br_hdr->ih_hdr_size);

/* Jump to entry point */
start = (void *)(SRAM_BASE_ADDRESS + rsp->br_hdr->ih_hdr_size);
void *start = (void *)(SRAM_BASE_ADDRESS + rsp->br_hdr->ih_hdr_size);
((void (*)(void))start)();
#endif /* CONFIG_SOC_FAMILY_ESPRESSIF_ESP32 */
}
Expand Down

0 comments on commit 8b74eb3

Please sign in to comment.