From 6f6538f05343798f6c1a1da91294ae30f5b17687 Mon Sep 17 00:00:00 2001 From: Gustavo Henrique Nihei Date: Tue, 23 Nov 2021 16:12:05 -0300 Subject: [PATCH] bootloader_support: Fix unused-but-set-variable compiler warning When building with BOOTLOADER_LOG_LEVEL lesser then VERBOSE, an error code variable was being set but not consumed, resulting in a compiler warning. Signed-off-by: Gustavo Henrique Nihei --- components/bootloader_support/src/bootloader_utility.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/components/bootloader_support/src/bootloader_utility.c b/components/bootloader_support/src/bootloader_utility.c index 09a843dcb6..129ad8e4db 100644 --- a/components/bootloader_support/src/bootloader_utility.c +++ b/components/bootloader_support/src/bootloader_utility.c @@ -700,7 +700,8 @@ static void set_cache_and_start_app( uint32_t irom_size, uint32_t entry_addr) { - int rc; + int rc __attribute__((unused)); + ESP_LOGD(TAG, "configure drom and irom and start"); #if CONFIG_IDF_TARGET_ESP32 Cache_Read_Disable(0);