Skip to content

Commit 334d2c2

Browse files
sylvioalvesnordicjm
authored andcommitted
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 <[email protected]>
1 parent c87d41e commit 334d2c2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

boot/zephyr/main.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,9 @@ static void copy_img_to_SRAM(int slot, unsigned int hdr_offset)
277277
*/
278278
static void do_boot(struct boot_rsp *rsp)
279279
{
280+
#ifndef CONFIG_SOC_FAMILY_ESPRESSIF_ESP32
280281
void *start;
282+
#endif /* CONFIG_SOC_FAMILY_ESPRESSIF_ESP32 */
281283

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

0 commit comments

Comments
 (0)