mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-08 23:24:33 +02:00
esp_system: intentionally suppress -Wstringop-overread
This commit is contained in:
@@ -613,7 +613,14 @@ void IRAM_ATTR call_start_cpu0(void)
|
|||||||
#else
|
#else
|
||||||
// This assumes that DROM is the first segment in the application binary, i.e. that we can read
|
// This assumes that DROM is the first segment in the application binary, i.e. that we can read
|
||||||
// the binary header through cache by accessing SOC_DROM_LOW address.
|
// the binary header through cache by accessing SOC_DROM_LOW address.
|
||||||
|
#pragma GCC diagnostic push
|
||||||
|
#if __GNUC__ >= 11
|
||||||
|
#pragma GCC diagnostic ignored "-Wstringop-overread"
|
||||||
|
#endif
|
||||||
|
#pragma GCC diagnostic ignored "-Warray-bounds"
|
||||||
memcpy(&fhdr, (void *) SOC_DROM_LOW, sizeof(fhdr));
|
memcpy(&fhdr, (void *) SOC_DROM_LOW, sizeof(fhdr));
|
||||||
|
#pragma GCC diagnostic pop
|
||||||
|
|
||||||
#endif // CONFIG_APP_BUILD_TYPE_ELF_RAM
|
#endif // CONFIG_APP_BUILD_TYPE_ELF_RAM
|
||||||
|
|
||||||
#if CONFIG_IDF_TARGET_ESP32
|
#if CONFIG_IDF_TARGET_ESP32
|
||||||
|
Reference in New Issue
Block a user