From c6391f12dbaa9bc930a5b8c923ad4f423efa91d6 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 5265b25510..b3bfa0fb97 100644 --- a/components/bootloader_support/src/bootloader_utility.c +++ b/components/bootloader_support/src/bootloader_utility.c @@ -722,7 +722,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);