From 1cd53982e1c0fc5bd3ebf54b73e4b2338dfaf8d4 Mon Sep 17 00:00:00 2001 From: Sylvio Alves Date: Mon, 1 Jul 2024 13:12:27 -0300 Subject: [PATCH] boot: main: avoid unused build warning In case ESP32 SoC is used, *start will get build warning as it is not used. Signed-off-by: Sylvio Alves (cherry picked from commit 334d2c28f66c16be73998414f940e295bf3fbf4a) --- boot/zephyr/main.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/boot/zephyr/main.c b/boot/zephyr/main.c index 74299698..62b45128 100644 --- a/boot/zephyr/main.c +++ b/boot/zephyr/main.c @@ -277,7 +277,9 @@ done: */ static void do_boot(struct boot_rsp *rsp) { +#ifndef CONFIG_SOC_FAMILY_ESPRESSIF_ESP32 void *start; +#endif /* CONFIG_SOC_FAMILY_ESPRESSIF_ESP32 */ 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);