bootloader: suppress -Wstringop-overflow
@@ -157,7 +157,11 @@ static void update_rtc_retain_mem_crc(void)
void bootloader_common_reset_rtc_retain_mem(void)
{
+ #pragma GCC diagnostic push
+ #pragma GCC diagnostic ignored "-Wstringop-overflow"
+ #pragma GCC diagnostic ignored "-Warray-bounds"
memset(rtc_retain_mem, 0, sizeof(rtc_retain_mem_t));
+ #pragma GCC diagnostic pop
}
uint16_t bootloader_common_get_rtc_retain_mem_reboot_counter(void)
