bootloader: suppress -Wstringop-overflow

This commit is contained in:
Anton Maklakov 2022-05-30 11:44:08 +07:00
parent aeaebc0977
commit 77c3bb9cfe

View File

@ -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)